🇰🇷 한글 설명
Apache Tomcat의 XSLT 스타일시트 처리 시 클래스 로더 제약이 불충분하여 XML External Entity (XXE) 취약점이 발생합니다. 공격자는 이를 악용해 임의 파일을 읽거나 같은 Tomcat 인스턴스의 다른 웹 애플리케이션 파일에 접근할 수 있습니다.
💡 쉬운 설명
Tomcat 웹 서버가 XML 파일을 처리할 때 외부 파일 접근을 제대로 차단하지 못합니다. 공격자가 특수하게 만든 XML을 제출하면 서버의 중요한 파일들을 읽을 수 있습니다.
🇺🇸 원문 (English)
Apache Tomcat before 6.0.40, 7.x before 7.0.54, and 8.x before 8.0.6 does not properly constrain the class loader that accesses the XML parser used with an XSLT stylesheet, which allows remote attackers to (1) read arbitrary files via a crafted web application that provides an XML external entity declaration in conjunction with an entity reference, related to an XML External Entity (XXE) issue, or (2) read files associated with different web applications on a single Tomcat instance via a crafted web application.
📍 영향받는 시스템
Apache Tomcat 6.0.40 미만, 7.0.54 미만, 8.0.6 미만
⚔️ 공격 벡터
XXE 취약점을 이용한 XML 외부 엔터티 주입으로 임의 파일 읽기 및 크로스 웹애플리케이션 파일 접근
🛡️ 대응 방법
Tomcat을 6.0.40, 7.0.54, 또는 8.0.6 이상으로 업그레이드
🔧 검증 코드
설치된 Tomcat 버전이 취약한 버전 범위에 해당하면 일치하는 항목이 출력됩니다
dpkg -l tomcat* 2>/dev/null | grep -E '(6\.0\.[0-3][0-9]|7\.0\.[0-4][0-9]|8\.0\.[0-5])'