🔍 CVE-2007-2679

6.8
CVSS Score
MEDIUM
2007-05-15
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

Simple PHP Scripts의 Ivan Peevski gallery 0.3 버전에서 index.php 파일의 gallery 파라미터를 통한 PHP 파일 인클루전 취약점입니다. 공격자는 UNC 경로 또는 로컬 파일 경로를 이용하여 file_exists 함수를 거쳐 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

웹사이트가 사용자 입력을 제대로 확인하지 않아서 공격자가 다른 파일을 강제로 불러올 수 있습니다. 이를 통해 공격자가 웹서버에서 자신의 코드를 실행할 수 있게 됩니다.

🇺🇸 원문 (English)

PHP file inclusion vulnerability in index.php in Ivan Peevski gallery 0.3 in Simple PHP Scripts (sphp) allows remote attackers to execute arbitrary PHP code via a UNC share pathname or a local file pathname in the gallery parameter, which is accessed by the file_exists function. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.

📍 영향받는 시스템

Simple PHP Scripts (sphp) Ivan Peevski gallery 0.3 버전

⚔️ 공격 벡터

HTTP 요청의 gallery 파라미터에 악의적인 파일 경로(UNC 경로 또는 로컬 경로) 입력

🛡️ 대응 방법

Simple PHP Scripts를 최신 버전으로 업그레이드하거나 gallery 파라미터에 대한 입력 검증 및 화이트리스트 구현

🔧 검증 코드

검색된 파일의 버전을 확인하고, gallery 파라미터에 대한 입력 검증 로직이 없는지 소스코드를 검토하여 취약성 여부를 판단합니다.

Shell / Script
find /var/www -type f -name 'index.php' -exec grep -l 'gallery.*file_exists' {} \; 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP