🔍 CVE-2006-6966

7.5
CVSS Score
HIGH
2007-02-04
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

phpGraphy 0.9.13a 이전 버전에서 숫자 파라미터와 영숫자 파라미터의 해시값이 일치할 때 변수 unset이 제대로 작동하지 않는 취약점입니다. 공격자는 pictures[] 파라미터를 통해 config.php 파일을 업로드하여 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

phpGraphy 사진 갤러리 프로그램에서 파일 업로드 검증이 불완전해서 위험한 config.php 파일을 업로드할 수 있습니다. 이를 통해 서버에서 임의의 코드를 실행할 수 있습니다.

🇺🇸 원문 (English)

phpGraphy before 0.9.13a does not properly unset variables when the input data includes a numeric parameter with a value matching an alphanumeric parameter's hash value, which allows remote attackers to execute arbitrary PHP code by uploading a config.php file via the pictures[] parameter to index.php. NOTE: it could be argued that this vulnerability is due to a bug in the unset PHP command (CVE-2006-3017) and the proper fix should be in PHP; if so, then this should not be treated as a vulnerability in phpGraphy.

📍 영향받는 시스템

phpGraphy 0.9.13a 이전 모든 버전

⚔️ 공격 벡터

pictures[] 파라미터를 통해 index.php로 config.php 파일을 업로드하여 코드 실행

🛡️ 대응 방법

phpGraphy를 0.9.13a 이상으로 업그레이드하거나 파일 업로드 검증 강화

🔧 검증 코드

phpGraphy 설치 경로가 나타나면 설치되어 있으며, 버전 정보는 해당 디렉토리의 index.php 또는 VERSION 파일에서 확인 가능

Shell / Script
find / -name 'phpgraphyconfig.php' -o -name 'phpGraphy' -type d 2>/dev/null | head -5

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP