🔍 CVE-2013-1976

6.9
CVSS Score
MEDIUM
2013-07-09
2026-06-16 23:52
✅ 완료

🇰🇷 한글 설명

Tomcat init 스크립트의 심볼릭 링크 공격 취약점으로, 로컬 사용자가 임의의 파일 소유권을 변경할 수 있습니다. JBoss Enterprise Web Server 1.0.2/2.0.0 및 RHEL 5/6의 Tomcat에 영향을 미칩니다.

💡 쉬운 설명

Tomcat 로그 파일 생성 시 심볼릭 링크를 악용하여 서버의 다른 파일 소유권을 탈취할 수 있는 결함입니다. 로컬 접근 가능한 일반 사용자가 권한 없는 파일을 조작할 수 있게 됩니다.

🇺🇸 원문 (English)

The (1) tomcat5, (2) tomcat6, and (3) tomcat7 init scripts, as used in the RPM distribution of Tomcat for JBoss Enterprise Web Server 1.0.2 and 2.0.0, and Red Hat Enterprise Linux 5 and 6, allow local users to change the ownership of arbitrary files via a symlink attack on (a) tomcat5-initd.log, (b) tomcat6-initd.log, (c) catalina.out, or (d) tomcat7-initd.log.

📍 영향받는 시스템

Tomcat 5, 6, 7 (JBoss EWS 1.0.2, 2.0.0 및 RHEL 5, 6)

⚔️ 공격 벡터

로컬 사용자가 tomcat5-initd.log, tomcat6-initd.log, catalina.out, tomcat7-initd.log에 대한 심볼릭 링크 공격으로 파일 소유권 변경

🛡️ 대응 방법

Tomcat을 최신 패치 버전으로 업그레이드하거나 init 스크립트에서 안전한 임시 파일 생성 함수(mktemp 등) 사용

🔧 검증 코드

출력에 l로 시작하는 행이 많으면 심볼릭 링크가 존재하는 취약한 상태이며, 없으면 패치된 상태입니다.

Shell / Script
ls -la /var/log/tomcat*/catalina.out /etc/init.d/tomcat* 2>/dev/null | grep '^l'

📊 CVSS Vector String

CVSS Vector
AV:L/AC:M/Au:N/C:C/I:C/A:C

💻 영향받는 소프트웨어

Apache Tomcat