🇰🇷 한글 설명
Linux에서 실행되는 Apache HTTP Server가 smbfs로 마운트된 Windows 공유의 문서 루트를 사용할 때, trailing 백슬래시가 AddType 지시문에서 제대로 처리되지 않아 원격 공격자가 PHP 소스 코드 등의 미처리 콘텐츠에 접근할 수 있는 경로 처리 취약점입니다.
💡 쉬운 설명
Apache 웹 서버가 Windows 공유 폴더에서 파일을 제공할 때 파일명 끝에 백슬래시를 붙이면 파일 타입 필터링을 우회하고 PHP 소스 코드를 다운로드할 수 있습니다. 웹 서버가 백슬래시를 올바르게 인식하지 못하기 때문입니다.
🇺🇸 원문 (English)
Apache HTTP Server, when running on Linux with a document root on a Windows share mounted using smbfs, allows remote attackers to obtain unprocessed content such as source files for .php programs via a trailing "\" (backslash), which is not handled by the intended AddType directive.
📍 영향받는 시스템
Linux에서 smbfs로 마운트된 Windows 공유를 document root로 사용하는 Apache HTTP Server (2.2.3 이전)
⚔️ 공격 벡터
요청 URL 끝에 백슬래시 추가 (예: GET /script.php\)
🛡️ 대응 방법
Apache를 최신 버전으로 업그레이드하거나 Windows 공유 대신 NFS 사용
🔧 검증 코드
Apache 버전이 2.2.3 이전이면 취약함. 최신 버전이 설치되어 있으면 안전.
apache2ctl -v 2>/dev/null | grep -i version