🇰🇷 한글 설명
Nginx UI 2.4.1 미만 버전에서 MCP 설정 인터페이스를 통해 제한된 Nginx 지시어를 우회하여 적용할 수 있는 취약점이 존재합니다. 공격자는 이를 통해 악성 JavaScript 모듈을 로드하고 Nginx 워커 컨텍스트에서 임의의 NJS 코드를 실행할 수 있습니다.
💡 쉬운 설명
Nginx 관리 도구의 보안 허점을 이용해 관리자 권한이 있는 사용자가 서버의 핵심 설정을 마음대로 바꿀 수 있는 문제입니다. 이를 통해 해커가 서버 내부에서 악성 코드를 실행하여 시스템을 장악할 위험이 있습니다.
🇺🇸 원문 (English)
Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, the regular HTTP configuration API rejects restricted Nginx directives such as load_module, js_import, and js_content. However, the MCP configuration interface allows a secondary authenticated user to write and apply equivalent restricted configuration content. This allows the user to load ngx_http_js_module.so, import attacker-controlled JavaScript, reload Nginx, and execute NJS in the Nginx worker context. This issue is fixed in version 2.4.1.
📍 영향받는 시스템
Nginx UI 버전 2.4.1 미만
⚔️ 공격 벡터
인증된 사용자가 MCP 설정 인터페이스를 통해 제한된 Nginx 지시어를 입력하여 악성 모듈을 로드함
🛡️ 대응 방법
Nginx UI를 최신 버전인 2.4.1 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 2.4.1 이상인지 확인하여 취약 여부를 판단합니다.
nginx-ui --version 2>/dev/null || curl -s http://localhost/api/version | grep -E '2.4.1'