🇰🇷 한글 설명
Thymeleaf 3.1.5.RELEASE 이전 버전에서 표현식 실행 메커니즘의 보안 우회 취약점이 발견되었습니다. 샌드박스 환경에서 특정 구문을 적절히 중화하지 못해, 검증되지 않은 변수가 템플릿에 사용될 경우 서버 측 템플릿 주입(SSTI)이 발생할 수 있습니다.
💡 쉬운 설명
웹사이트의 화면을 만드는 도구인 Thymeleaf에서 보안 구멍이 발견되었습니다. 해커가 특수하게 조작된 데이터를 보내면 서버 내부의 명령어를 마음대로 실행할 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
Thymeleaf is a server-side Java template engine for web and standalone environments. Prior to 3.1.5.RELEASE, a security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf. Although the library provides mechanisms to avoid the execution of potentially dangerous expressions in some specific sandboxed (restricted) contexts, it fails to properly neutralize specific constructs that allow this kind of expressions to be executed. If an application developer passes to the template engine unsanitized variables that contain such expressions, and these values are used in sandboxed contexts inside the templates, these expressions can be executed achieving Server-Side Template Injection (SSTI). This vulnerability is fixed in 3.1.5.RELEASE.
📍 영향받는 시스템
Thymeleaf versions prior to 3.1.5.RELEASE
⚔️ 공격 벡터
사용자로부터 입력받은 검증되지 않은 변수가 템플릿 엔진의 샌드박스 컨텍스트 내에서 실행될 때 SSTI를 통해 공격
🛡️ 대응 방법
Thymeleaf 라이브러리를 3.1.5.RELEASE 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 thymeleaf의 버전을 확인하여 3.1.5.RELEASE 미만인지 체크합니다.
mvn dependency:tree | grep thymeleaf
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server