🔍 CVE-2024-23827

9.8
CVSS Score
CRITICAL
2024-01-29
2026-06-17 07:13
✅ 완료

🇰🇷 한글 설명

Nginx-UI의 인증서 가져오기 기능에서 입력값 검증 미흡으로 인해 시스템 내 임의 경로에 파일을 쓸 수 있는 취약점이 발견되었습니다. 공격자는 이를 악용하여 설정 파일인 app.ini를 덮어씀으로써 원격 코드 실행(RCE)을 수행할 수 있습니다.

💡 쉬운 설명

Nginx 관리 도구의 인증서 업로드 기능에 허점이 있어, 해커가 시스템의 중요한 파일을 마음대로 바꿀 수 있습니다. 이를 통해 해커가 서버를 원격으로 조종할 수 있는 위험한 상태가 됩니다.

🇺🇸 원문 (English)

Nginx-UI is a web interface to manage Nginx configurations. The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system. It's possible to leverage the vulnerability into a remote code execution overwriting the config file app.ini. Version 2.0.0.beta.12 fixed the issue.

📍 영향받는 시스템

Nginx-UI 2.0.0.beta.12 미만 버전

⚔️ 공격 벡터

인증서 가져오기 기능을 통한 임의 경로 파일 쓰기 및 설정 파일 변조

🛡️ 대응 방법

Nginx-UI를 최신 보안 패치가 적용된 버전 2.0.0.beta.12 이상으로 업데이트하십시오.

🔧 검증 코드

명령어 실행 결과가 'Vulnerable'이면 취약한 버전이며, 'Safe'이면 안전한 버전입니다.

Shell / Script
python3 -c 'import re; import os; print("Vulnerable") if re.search(r"2\.0\.0\.beta\.[0-1][0-9]", os.popen("nginx-ui --version 2>/dev/null").read()) else print("Safe")'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Nginx