🇰🇷 한글 설명
Apache Tomcat과 JBoss Web의 DiskFileItem 클래스 readObject 메서드가 파일명의 NULL 바이트를 제대로 처리하지 못해 원격 공격자가 임의의 파일에 쓸 수 있는 취약점입니다. 직렬화된 인스턴스의 NULL 바이트를 이용해 경로 검증을 우회할 수 있습니다.
💡 쉬운 설명
Tomcat 웹 서버가 파일 저장 시 특수 문자(NULL 바이트)를 제대로 처리하지 못해 공격자가 원하는 위치에 파일을 저장할 수 있습니다. 이를 통해 서버의 중요한 파일을 덮어씌우거나 악성 파일을 심을 수 있습니다.
🇺🇸 원문 (English)
The readObject method in the DiskFileItem class in Apache Tomcat and JBoss Web, as used in Red Hat JBoss Enterprise Application Platform 6.1.0 and Red Hat JBoss Portal 6.0.0, allows remote attackers to write to arbitrary files via a NULL byte in a file name in a serialized instance, a similar issue to CVE-2013-2186. NOTE: this issue is reportedly disputed by the Apache Tomcat team, although Red Hat considers it a vulnerability. The dispute appears to regard whether it is the responsibility of applications to avoid providing untrusted data to be deserialized, or whether this class should inherently protect against this issue
📍 영향받는 시스템
Apache Tomcat (상세 버전 미명시), JBoss Web, Red Hat JBoss Enterprise Application Platform 6.1.0, Red Hat JBoss Portal 6.0.0
⚔️ 공격 벡터
NULL 바이트가 포함된 파일명을 가진 직렬화된 객체를 전송하여 경로 검증 우회 후 임의의 위치에 파일 작성
🛡️ 대응 방법
영향받는 Tomcat/JBoss 버전을 최신 패치가 적용된 버전으로 업그레이드 또는 신뢰할 수 없는 직렬화 데이터 역직렬화 제한
🔧 검증 코드
설치된 Tomcat이나 JBoss 패키지의 버전이 표시되면 해당 버전이 이 CVE의 영향 범위에 포함되는지 확인하고 패치 적용 필요
rpm -qa 2>/dev/null | grep -iE 'tomcat|jboss|wildfly' || dpkg -l 2>/dev/null | grep -iE 'tomcat|jboss|wildfly'