🇰🇷 한글 설명
Nginx UI 2.4.1 미만 버전에서 MCP 도구인 nginx_config_add를 통해 위험한 Nginx 지시어를 주입할 수 있는 취약점이 발견되었습니다. 인증된 MCP 호출자나 프롬프트 인젝션으로 유도된 에이전트가 njs 또는 perl 모듈을 사용하여 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
Nginx 설정을 관리하는 프로그램의 특정 기능에서 보안 검사를 건너뛰는 허점이 발견되었습니다. 이를 통해 해커가 관리자 권한으로 악성 명령어를 실행하여 서버를 장악할 수 있습니다.
🇺🇸 원문 (English)
Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, internal/config/validation.go (ValidateConfigFile) is a security control that blocks dangerous nginx directives — js_*, perl_*, load_module of the njs/perl modules, and user root. It is enforced on three of the four config-write paths: api/config/add.go, api/config/modify.go, and mcp/config/config_modify.go. The fourth path — the MCP tool nginx_config_add (mcp/config/config_add.go) — does NOT call it: it writes the caller-supplied content straight to disk and reloads nginx. An authenticated MCP caller (or an MCP agent induced via prompt injection) can therefore inject exactly the directives the control is meant to block, leading to nginx code execution on deployments where the njs/perl module is available (e.g. the official Docker image). This issue is fixed in version 2.4.1.
📍 영향받는 시스템
Nginx UI 2.4.1 미만 버전
⚔️ 공격 벡터
인증된 MCP 호출자 또는 프롬프트 인젝션에 의해 유도된 MCP 에이전트를 통한 설정 파일 주입
🛡️ 대응 방법
Nginx UI를 최신 보안 패치가 적용된 2.4.1 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력 결과에 '2.4.1' 이상의 버전 정보가 포함되어 있는지 확인하십시오.
curl -s http://<target-ip>/version | grep -E '2.4.1'