🔍 CVE-2026-106445

0.0
CVSS Score
UNKNOWN
2026-10-06
2026-10-12 15:17
✅ 완료

🇰🇷 한글 설명

Handlebars 3.0.0부터 4.7.10 버전까지 lookupProperty 함수가 prototype-access 차단 목록을 적용하기 전에 Function.prototype.constructor를 반환하는 취약점이 존재합니다. 공격자가 제어 가능한 템플릿을 통해 Function 생성자에 접근할 수 있으며, 이를 통해 서버 권한으로 임의의 자바스크립트 코드를 실행할 수 있습니다.

💡 쉬운 설명

템플릿 엔진의 보안 검사 허점을 이용해 공격자가 서버에서 몰래 명령어를 실행할 수 있는 보안 결함입니다. 허용되지 않은 내부 함수에 접근하여 시스템 제어권을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

Handlebars provides the power necessary to let users build semantic templates. From 3.0.0 until 4.7.10, Handlebars lookupProperty returns Function.prototype.constructor before applying the prototype-access deny list because constructor is an own property of Function.prototype. When an attacker can render a controlled template with allowProtoMethodsByDefault enabled and an accessible function in the template context, the template can traverse from that function through its prototype to Function.prototype and then obtain the Function constructor through the own-property bypass. This permits attacker-controlled JavaScript to execute with the server application's privileges. This issue is fixed in version 4.7.10.

📍 영향받는 시스템

Handlebars versions 3.0.0 to 4.7.10

⚔️ 공격 벡터

allowProtoMethodsByDefault가 활성화된 상태에서 제어 가능한 템플릿을 통해 Function 생성자에 접근하여 원격 코드 실행(RCE)

🛡️ 대응 방법

Handlebars 버전을 4.7.10 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 4.7.10 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
npm list handlebars | grep -E 'handlebars@([0-4]\.[0-7]\.[0-9]|4\.7\.10)'

💻 영향받는 소프트웨어

IBM WebSphere Application Server