🇰🇷 한글 설명
Apache httpd 2.2.3의 suexec가 문서 루트 검증 시 부분 비교만 수행하여, 로컬 사용자가 의도하지 않은 디렉토리에 대해 무단 작업을 수행할 수 있는 취약점입니다. 'html' 디렉토리 하의 'html_backup', 'htmleditor' 같은 이름을 악용하여 공격 가능합니다.
💡 쉬운 설명
Apache 웹 서버가 폴더 경로를 완전하게 확인하지 않아서, 로컬 사용자가 허가받지 않은 폴더에서 작업할 수 있습니다. 이는 서버 설정이 안전하지 않아 사용자가 웹 루트 폴더에 쓰기 권한을 가진 경우에만 공격 가능합니다.
🇺🇸 원문 (English)
suexec in Apache HTTP Server (httpd) 2.2.3 uses a partial comparison for verifying whether the current directory is within the document root, which might allow local users to perform unauthorized operations on incorrect directories, as demonstrated using "html_backup" and "htmleditor" under an "html" directory. NOTE: the researcher, who is reliable, claims that the vendor disputes the issue because "the attacks described rely on an insecure server configuration" in which the user "has write access to the document root."
📍 영향받는 시스템
Apache httpd 2.2.3 and earlier versions with suexec enabled
⚔️ 공격 벡터
Local users with document root write access exploit partial path comparison in suexec verification to execute unauthorized directory operations
🛡️ 대응 방법
Upgrade Apache httpd to version 2.2.4 or later; enforce strict document root permissions restricting user write access
🔧 검증 코드
Apache 버전이 2.2.3 이하면 취약함; 2.2.4 이상이면 패치됨. 버전 정보가 출력되지 않으면 Apache가 설치되지 않았거나 권한이 없음.
httpd -v 2>/dev/null | grep -oE 'Apache/[0-9]+\.[0-9]+\.[0-9]+'