🇰🇷 한글 설명
PHP와 함께 사용되는 ModSecurity 2.6.6 이전 버전에서 multipart/form-data 요청의 Content-Disposition 필드에 포함된 단일 따옴표를 부정확하게 처리하는 취약점입니다. 이로 인해 공격자가 보안 필터링 규칙을 우회하고 XSS 공격 등의 악성 행위를 수행할 수 있습니다.
💡 쉬운 설명
웹 보안 필터(ModSecurity)의 버그로 인해 특정 형식의 파일 업로드 요청이 검사를 통과할 수 있습니다. 공격자가 이를 악용하면 악의적인 코드를 주입하여 사용자 정보를 탈취하거나 사용자를 속일 수 있습니다.
🇺🇸 원문 (English)
ModSecurity before 2.6.6, when used with PHP, does not properly handle single quotes not at the beginning of a request parameter value in the Content-Disposition field of a request with a multipart/form-data Content-Type header, which allows remote attackers to bypass filtering rules and perform other attacks such as cross-site scripting (XSS) attacks. NOTE: this vulnerability exists because of an incomplete fix for CVE-2009-5031.
📍 영향받는 시스템
ModSecurity 2.6.6 이전 버전 (PHP 환경)
⚔️ 공격 벡터
multipart/form-data Content-Type의 Content-Disposition 필드에 특정 위치의 단일 따옴표를 포함시켜 필터 우회 및 XSS 공격 수행
🛡️ 대응 방법
ModSecurity를 2.6.6 이상으로 업그레이드
🔧 검증 코드
설치된 ModSecurity의 패키지명과 버전이 표시되며, 2.6.6 미만이면 취약점이 존재합니다.
dpkg -l 2>/dev/null | grep modsecurity | awk '{print $2, $3}' || rpm -qa 2>/dev/null | grep modsecurity