계정이 여러 개 있을 경우 일괄 패치법

익명 사용자의 이미지

C shell 에서 적용했습니다. bash 에서도 아마 수정없이 실행될 것으로 생각됩니다.

적용법은
cd /home 하신 뒤에 아래 명령을 하나씩 실행하면 됩니다.(계정이 있는 디렉토리가 틀리면 그에 맞춰 이동하시면 됩니다.)
perl 이 깔려 있어야 합니다.

phpschool의 ibin님의 게시물을 참조해서 만들었습니다.
http://www.phpschool.com/bbs2/inc_view.html?id=8643&code=tnt2&start=0&mode=search&field=title&search_name=&operator=and&period=all&category_id=&s_que=%C1%A6%B7%CE%BA%B8%B5%E5

1. outlogin.php의 보안 패치
grep -rl 'file_exist' `find . -name outlogin.php` | xargs -n 1 perl -pi -e 's,if\(\!file_exists\(\$_zb_path\.\"lib\.php\"\)\)\ \{,if\(eregi\(\"\:\\\/\\\/\"\,\$_zb_path\)\)\ \$_zb_path=\"\"\;\n\t\tif\(\!file_exists\(\$_zb_path\.\"lib\.php\"\)\)\ \{,g'

2. include/write.php의 보안 패치
find . -name write.php|grep include | xargs -n 1 perl -pi -e 's,include,if\(eregi\(\"\:\\\/\\\/\"\,\$dir\
)\)\ \$dir=\"\"\;\n\tinclude,g'

3. check_user_id.php 의 보안 패치
find . -name check_user_id.php | xargs -n 1 perl -pi -e 's,trim\(\$user_id\),htmlspecialchars\(trim\(
\$user_id\)\),g'

익명 사용자의 이미지

죄송합니다. phpBB 사용법이 아직 미숙해서 제로보드 취약점에 답변을 한다는 게 그만 새로 글쓰기가 되어 버렸네요.

제로보드 취약점 밑에 다시 답변글 달았습니다. 이 글은 지워주십시오.
번거롭게 해드려서 죄송합니다.