🇰🇷 한글 설명
NGINX Plus 및 오픈소스 버전의 ngx_http_rewrite_module에서 발생하는 취약점입니다. rewrite 지시문에서 중첩된 PCRE 캡처와 이를 참조하는 교체 문자열을 사용할 때 힙 버퍼 오버플로우가 발생할 수 있습니다. 공격자는 이를 통해 워커 프로세스를 재시작시키거나, ASLR이 비활성화된 환경에서 원격 코드 실행이 가능합니다.
💡 쉬운 설명
웹 서버 설정 중 특정 규칙을 잘못 사용하면 해커가 서버를 강제로 꺼버리거나 서버를 마음대로 조종할 수 있는 보안 구멍이 있습니다. 특수하게 조작된 요청을 보내면 서버의 메모리 영역을 넘쳐나게 만들어 시스템을 공격할 수 있습니다.
🇺🇸 원문 (English)
NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when a rewrite directive uses a regex pattern with distinct, overlapping Perl-Compatible Regular Expression (PCRE) captures (for example, ^/((.*))$) and a replacement string that references multiple such captures (for example, $1$2) in a redirect or arguments context. An unauthenticated attacker along with conditions beyond their control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.
Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
📍 영향받는 시스템
NGINX Plus 및 NGINX Open Source (ngx_http_rewrite_module 사용 버전)
⚔️ 공격 벡터
조작된 HTTP 요청을 전송하여 힙 버퍼 오버플로우 유도
🛡️ 대응 방법
NGINX를 최신 보안 패치가 적용된 버전으로 업데이트하고, rewrite 설정 내 중첩된 PCRE 캡처 사용을 점검하십시오.
🔧 검증 코드
출력된 NGINX 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 제조사 보안 권고안과 비교하십시오.