🇰🇷 한글 설명
Nginx-ui의 API가 UI에서 제한된 설정 외에도 구성 테스트, 재시작 등의 명령을 실행할 수 있는 엔드포인트를 노출하고 있습니다. 인증된 사용자가 API를 통해 직접 요청을 보낼 경우 원격 코드 실행(RCE), 권한 상승 및 정보 유출이 발생할 수 있습니다.
💡 쉬운 설명
관리자 화면에서는 보이지 않는 위험한 명령들이 숨겨진 통로(API)를 통해 실행될 수 있는 보안 결함입니다. 해커가 이 통로를 이용하면 서버를 마음대로 조작하거나 중요한 정보를 빼낼 수 있습니다.
🇺🇸 원문 (English)
Nginx-ui is online statistics for Server Indicators Monitor CPU usage, memory usage, load average, and disk usage in real-time. The `Home > Preference` page exposes a small list of nginx settings such as `Nginx Access Log Path` and `Nginx Error Log Path`. However, the API also exposes `test_config_cmd`, `reload_cmd` and `restart_cmd`. While the UI doesn't allow users to modify any of these settings, it is possible to do so by sending a request to the API. This issue may lead to authenticated Remote Code Execution, Privilege Escalation, and Information Disclosure. This issue has been patched in version 2.0.0.beta.9.
📍 영향받는 시스템
Nginx-ui 2.0.0.beta.9 미만 버전
⚔️ 공격 벡터
인증된 사용자가 조작된 API 요청(test_config_cmd, reload_cmd, restart_cmd)을 전송하여 공격
🛡️ 대응 방법
Nginx-ui를 최신 패치 버전인 2.0.0.beta.9 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과에 2.0.0.beta.9 이상의 버전 정보가 포함되어 있는지 확인하십시오.
curl -s http://localhost:PORT/api/version | grep -E '2.0.0.beta.9'