🔍 CVE-2016-5388

8.1
CVSS Score
HIGH
2016-07-19
2026-10-15 16:17
✅ 완료

🇰🇷 한글 설명

Apache Tomcat의 CGI Servlet이 활성화된 경우, HTTP_PROXY 환경 변수에 포함된 신뢰할 수 없는 클라이언트 데이터를 보호하지 않음으로써 공격자가 Proxy 헤더를 통해 애플리케이션의 아웃바운드 HTTP 트래픽을 임의의 프록시 서버로 리다이렉트할 수 있습니다. 이는 'httpoxy' 취약점으로 알려져 있습니다.

💡 쉬운 설명

Tomcat에서 CGI가 활성화되어 있으면 공격자가 특별한 헤더를 보내 서버의 웹 요청을 자신의 프록시로 거쳐가도록 조작할 수 있습니다. 이를 통해 민감한 데이터를 탈취하거나 공격을 수행할 수 있습니다.

🇺🇸 원문 (English)

Apache Tomcat 7.x through 7.0.70 and 8.x through 8.5.4, when the CGI Servlet is enabled, follows RFC 3875 section 4.1.18 and therefore does not protect applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect an application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, aka an "httpoxy" issue. NOTE: the vendor states "A mitigation is planned for future releases of Tomcat, tracked as CVE-2016-5388"; in other words, this is not a CVE ID for a vulnerability.

📍 영향받는 시스템

Apache Tomcat 7.0.0~7.0.70, 8.0.0~8.5.4 (CGI Servlet 활성화 필요)

⚔️ 공격 벡터

HTTP 요청의 Proxy 헤더를 조작하여 애플리케이션 아웃바운드 트래픽을 공격자 제어 프록시로 리다이렉트

🛡️ 대응 방법

Tomcat을 7.0.71 이상 또는 8.5.5 이상으로 업그레이드하거나 CGI Servlet 비활성화

🔧 검증 코드

출력된 Tomcat 버전이 7.0.71 미만 또는 8.0.0~8.5.4 범위이면 취약, CGI 서블릿 활성화 여부를 web.xml에서 확인 필요

Shell / Script
head -3 /opt/tomcat/RELEASE-NOTES 2>/dev/null | grep -i tomcat

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache HTTP Server