🇰🇷 한글 설명
ModSecurity 2.9.8~2.9.10 버전에서 빈 XML 태그(<foo></foo>)를 포함한 요청이 들어올 때 세그멘테이션 폴트가 발생합니다. SecParseXmlIntoArgs가 On 또는 OnlyArgs로 설정되어 있고 요청 타입이 application/xml일 때 트리거되며, 2.9.11 버전에서 패치되었습니다.
💡 쉬운 설명
ModSecurity WAF에서 특정 형식의 빈 XML 태그를 처리할 때 프로그램이 충돌하는 버그입니다. 공격자가 이를 악용하면 웹방화벽을 다운시킬 수 있습니다.
🇺🇸 원문 (English)
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. In versions 2.9.8 to before 2.9.11, an empty XML tag can cause a segmentation fault. If SecParseXmlIntoArgs is set to On or OnlyArgs, and the request type is application/xml, and at least one XML tag is empty (eg <foo></foo>), then a segmentation fault occurs. This issue has been patched in version 2.9.11. A workaround involves setting SecParseXmlIntoArgs to Off.
📍 영향받는 시스템
ModSecurity 2.9.8~2.9.10 (Apache, IIS, Nginx)
⚔️ 공격 벡터
application/xml Content-Type의 HTTP 요청에 빈 XML 태그를 포함시켜 전송
🛡️ 대응 방법
ModSecurity를 2.9.11 이상으로 업그레이드하거나 SecParseXmlIntoArgs를 Off로 설정
🔧 검증 코드
설치된 ModSecurity 버전을 확인하여 2.9.11 이상이면 안전하고 2.9.10 이하면 업그레이드 필요
rpm -q modsecurity 2>/dev/null || dpkg -l modsecurity 2>/dev/null | grep modsecurity