🇰🇷 한글 설명
Tomcat 6, 7, 8의 postinst 설치 스크립트에서 Catalina localhost 디렉토리에 대한 심링크(symlink) 공격 취약점입니다. tomcat 계정으로 접근 가능한 로컬 사용자가 이를 악용하여 민감한 정보를 탈취하거나 루트 권한을 획득할 수 있습니다.
💡 쉬운 설명
Tomcat 설치 시 심링크를 조작하여 다른 파일에 접근하는 공격입니다. 같은 서버에 접속할 수 있는 사용자가 관리자 권한을 빼앗을 수 있습니다.
🇺🇸 원문 (English)
The postinst script in the tomcat6 package before 6.0.45+dfsg-1~deb7u4 on Debian wheezy, before 6.0.35-1ubuntu3.9 on Ubuntu 12.04 LTS and on Ubuntu 14.04 LTS; the tomcat7 package before 7.0.28-4+deb7u8 on Debian wheezy, before 7.0.56-3+deb8u6 on Debian jessie, before 7.0.52-1ubuntu0.8 on Ubuntu 14.04 LTS, and on Ubuntu 12.04 LTS, 16.04 LTS, and 16.10; and the tomcat8 package before 8.0.14-1+deb8u5 on Debian jessie, before 8.0.32-1ubuntu1.3 on Ubuntu 16.04 LTS, before 8.0.37-1ubuntu0.1 on Ubuntu 16.10, and before 8.0.38-2ubuntu1 on Ubuntu 17.04 might allow local users with access to the tomcat account to obtain sensitive information or gain root privileges via a symlink attack on the Catalina localhost directory.
📍 영향받는 시스템
Tomcat 6/7/8: Debian wheezy/jessie, Ubuntu 12.04/14.04/16.04/16.10/17.04 (특정 버전 이하)
⚔️ 공격 벡터
postinst 스크립트 실행 중 Catalina 디렉토리에 대한 심링크 공격으로 권한 상승
🛡️ 대응 방법
영향받는 Tomcat 버전을 패치된 버전으로 업그레이드 (6.0.45+, 7.0.56+ 이상)
🔧 검증 코드
설치된 Tomcat 버전을 확인하여 영향받는 버전 범위에 있는지 확인하고, 있으면 즉시 패치된 버전으로 업그레이드 필요
dpkg -l | grep -E 'tomcat[678]' | awk '{print $2, $3}'