🇰🇷 한글 설명
PHP 템플릿 엔진 Twig의 샌드박스에서 Array-like 객체의 속성에 대한 보안 정책 검증이 누락된 취약점. 공격자가 보안 제약을 우회하여 제한된 속성에 접근할 수 있으며, 버전 3.11.2 및 3.14.1에서 __isset() 메서드를 통한 보안 검사 추가로 패치됨.
💡 쉬운 설명
Twig라는 PHP 템플릿 도구에서 보안 규칙을 피해 배열 데이터에 불법 접근할 수 있는 문제가 있었습니다. 최신 버전으로 업데이트하면 이 문제가 해결됩니다.
🇺🇸 원문 (English)
Twig is a template language for PHP. In a sandbox, an attacker can access attributes of Array-like objects as they were not checked by the security policy. They are now checked via the property policy and the `__isset()` method is now called after the security check. This is a BC break. This issue has been patched in versions 3.11.2 and 3.14.1. All users are advised to upgrade. There are no known workarounds for this issue.
📍 영향받는 시스템
Twig 3.11.2 미만 및 3.14.1 미만 모든 버전
⚔️ 공격 벡터
샌드박스 환경에서 템플릿 문법을 이용해 Array-like 객체의 속성을 직접 접근하여 보안 정책 우회
🛡️ 대응 방법
Twig를 3.11.2 또는 3.14.1 이상의 버전으로 업그레이드
🔧 검증 코드
설치된 Twig 버전이 3.11.2 이상이거나 3.14.1 이상이면 안전함, 그 이하이면 즉시 업그레이드 필요
composer show twig/twig 2>/dev/null | grep -oP 'installed.*?\K[0-9]+\.[0-9]+\.[0-9]+'