🇰🇷 한글 설명
ModSecurity 오픈소스 WAF의 libModSecurity3 라이브러리에서 hexDecode 변환 기능이 단일 문자 쿼리 문자열 처리 시 메모리 접근 오류로 인해 세그먼테이션 폴트가 발생합니다. 이를 통해 공격자는 워커 프로세스를 크래시시켜 서비스 거부 공격(DoS)을 야기할 수 있으며, 3.0.15 버전 이상에서 패치되었습니다.
💡 쉬운 설명
ModSecurity WAF의 특정 기능이 매우 짧은 입력값을 처리할 때 충돌하는 버그가 있습니다. 공격자는 이를 악용해 웹 방화벽이 작동하는 서버를 일시적으로 다운시킬 수 있습니다.
🇺🇸 원문 (English)
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Libmodsecurity is one component of the ModSecurity v3 project. A segmentation fault occurs when a rule using the t:hexDecode transformation inspects a query string parameter containing a single character. An attacker can exploit this to crash worker processes, causing a denial of service. Service resumes once the attack stops as worker processes recover from the segfault. All versions before 3.0.15 of libModSecurity3 are affected. This has been patched in version 3.0.15.
📍 영향받는 시스템
libModSecurity3 버전 3.0.15 미만 (Apache, IIS, Nginx용 모듈)
⚔️ 공격 벡터
단일 문자가 포함된 쿼리 문자열 파라미터를 전송하여 hexDecode 변환 규칙을 트리거
🛡️ 대응 방법
libModSecurity3을 3.0.15 이상으로 업그레이드
🔧 검증 코드
출력된 버전 번호가 3.0.15 이상이면 안전, 그 미만이면 업그레이드 필요
dpkg -l libmodsecurity3 2>/dev/null | grep libmodsecurity3 | awk '{print $3}' || rpm -q libmodsecurity3 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'