🔍 CVE-2026-62993

0.0
CVSS Score
UNKNOWN
2026-08-31
2026-09-08 21:11
✅ 완료

🇰🇷 한글 설명

PHP 템플릿 엔진인 Smarty의 {fetch} 함수 처리 과정에서 보안 정책이 활성화되어 있어도 초기 URL만 신뢰할 수 있는 URI인지 검증하는 취약점이 발견되었습니다. 공격자가 신뢰할 수 있는 호스트의 오픈 리다이렉트를 이용하면, 검증을 우회하여 내부 엔드포인트로 요청을 보내는 서버 측 요청 위조(SSRF) 공격이 가능합니다.

💡 쉬운 설명

웹사이트가 허용된 주소로만 데이터를 가져오도록 설정되어 있지만, 중간에 다른 주소로 넘겨주는 '리다이렉트' 기능을 이용해 보안망을 뚫고 내부 서버에 접근할 수 있는 문제입니다. 이를 통해 공격자는 원래 접근할 수 없는 내부 정보에 접근할 수 있습니다.

🇺🇸 원문 (English)

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 4.5.7 and 5.8.2, depending on the release line, Smarty's {fetch} handling in libs/plugins/function.fetch.php and src/FunctionHandler/Fetch.php used Security::isTrustedUri() to validate only the initial remote URL against trusted_uri when a security policy was active. For resources handled by file_get_contents(), including HTTPS URLs, PHP followed HTTP redirects by default. An attacker who could supply or influence a fetch target and had an open redirect on a trusted host could redirect the request to an attacker-chosen internal endpoint, bypass the trusted_uri allowlist, and perform server-side request forgery. This issue is fixed in versions 4.5.7 and 5.8.2.

📍 영향받는 시스템

Smarty versions prior to 4.5.7 and 5.8.2

⚔️ 공격 벡터

신뢰할 수 있는 호스트의 오픈 리다이렉트를 이용한 {fetch} 함수 대상 URL 조작을 통한 SSRF

🛡️ 대응 방법

Smarty를 버전 4.5.7 또는 5.8.2 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 4.5.7 미만이거나 5.8.2 미만인 경우 취약한 상태입니다.

Shell / Script
composer show smarty/smarty | grep 'versions'

💻 영향받는 소프트웨어

PHP