🇰🇷 한글 설명
web.py 0.76 버전에서 서버 측 템플릿 주입(SSTI) 취약점이 발견되었습니다. 공격자가 쓰기 권한이 있는 디렉토리의 템플릿을 사전 컴파일하도록 유도하면, 내장된 보안 체크를 우회하여 임의의 파이썬 코드 및 OS 명령을 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 화면을 만드는 도구가 해커의 명령어를 잘못 실행하여 서버를 장악할 수 있는 문제입니다. 해커가 몰래 심어놓은 코드가 서버에서 직접 실행되어 컴퓨터를 마음대로 조종할 수 있게 됩니다.
🇺🇸 원문 (English)
webpy web.py 0.76 is vulnerable to server-side template injection (SSTI). The template engine can be tricked into executing attacker-controlled template code that built-in security checks are designed to reject. When an application precompiles templates from a directory the attacker can write to and later renders them through the precompiled template loader, the sandbox is bypassed and the attacker's code runs, resulting in arbitrary Python code execution and OS command execution on the server.
📍 영향받는 시스템
web.py 0.76 버전
⚔️ 공격 벡터
공격자가 쓰기 가능한 디렉토리에 악성 템플릿 파일을 생성한 후, 사전 컴파일된 템플릿 로더를 통해 실행 유도
🛡️ 대응 방법
web.py를 최신 보안 패치가 적용된 버전으로 업데이트하고, 템플릿 디렉토리에 대한 쓰기 권한을 엄격히 제한하십시오.
🔧 검증 코드
출력된 버전이 0.76인 경우 해당 취약점에 노출된 상태입니다.
pip show web.py | grep Version
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server