🇰🇷 한글 설명
Apache mod_mime 모듈이 설치된 환경에서 DeluxeBB 1.06 이하 버전의 newpost.php에 존재하는 파일 업로드 취약점입니다. 공격자가 이중 확장자를 이용하여 PHP 파일을 업로드하면 서버에서 PHP 코드로 실행되어 임의 코드 실행이 가능합니다.
💡 쉬운 설명
DeluxeBB 게시판의 파일 업로드 기능에서 이중 확장자(예: shell.php.jpg)를 사용하면 서버가 PHP 파일로 인식하여 실행합니다. 공격자는 이를 통해 서버에서 원하는 명령어를 실행할 수 있습니다.
🇺🇸 원문 (English)
DeluxeBB 1.06 and earlier, when run on the Apache HTTP Server with the mod_mime module, allows remote attackers to execute arbitrary PHP code by uploading files with double extensions via the fileupload parameter in a newthread action in newpost.php.
📍 영향받는 시스템
DeluxeBB 1.06 이하 버전 (Apache + mod_mime 환경)
⚔️ 공격 벡터
newpost.php의 newthread 액션에서 fileupload 파라미터로 이중 확장자 파일(.php.jpg 등) 업로드
🛡️ 대응 방법
DeluxeBB 최신 버전으로 업그레이드하거나 파일 확장자 화이트리스트 검증 강화 및 업로드 디렉토리의 PHP 실행 비활성화
🔧 검증 코드
DeluxeBB 설치 경로의 newpost.php에서 fileupload 처리 부분을 찾아 확장자 검증 로직이 있는지 확인하면 패치 상태를 판단할 수 있습니다
find /var/www/html -name 'newpost.php' 2>/dev/null | xargs grep -l 'fileupload' 2>/dev/null