🔍 CVE-2009-4137

7.5
CVSS Score
HIGH
2009-12-24
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

Piwik 0.5 이전 버전에서 쿠키 데이터를 검증하지 않고 unserialize() 함수로 처리하는 PHP Object Injection 취약점입니다. 공격자는 악의적인 직렬화 객체를 쿠키에 삽입하여 __destruct 매직 메서드를 트리거하고 임의의 코드 실행, 파일 업로드 등의 피해를 줄 수 있습니다.

💡 쉬운 설명

Piwik 웹분석 도구가 사용자 쿠키를 안전하게 처리하지 않는 문제입니다. 공격자는 특수한 쿠키를 보내 서버에서 원하는 코드를 실행할 수 있습니다.

🇺🇸 원문 (English)

The loadContentFromCookie function in core/Cookie.php in Piwik before 0.5 does not validate strings obtained from cookies before calling the unserialize function, which allows remote attackers to execute arbitrary code or upload arbitrary files via vectors related to the __destruct function in the Piwik_Config class; php://filter URIs; the __destruct functions in Zend Framework, as demonstrated by the Zend_Log destructor; the shutdown functions in Zend Framework, as demonstrated by the Zend_Log_Writer_Mail class; the render function in the Piwik_View class; Smarty templates; and the _eval function in Smarty.

📍 영향받는 시스템

Piwik < 0.5

⚔️ 공격 벡터

PHP Object Injection을 통한 악의적인 직렬화 객체 전송 (쿠키 벡터)

🛡️ 대응 방법

Piwik을 0.5 이상으로 업그레이드하고 모든 unserialize() 호출 전에 입력 검증 추가

🔧 검증 코드

출력된 버전 번호가 0.5 미만이면 취약점 대상이므로 즉시 업그레이드 필요합니다.

Shell / Script
find / -name 'Version.php' -path '*/piwik/*' 2>/dev/null | xargs grep -E 'VERSION|version' | grep -oE '[0-9]+\.[0-9]+' | head -1

📊 CVSS Vector String

CVSS Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P

💻 영향받는 소프트웨어

PHP