🔍 CVE-2009-0643

5.1
CVSS Score
MEDIUM
2009-02-20
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

Simple PHP News 1.0 final의 post.php에서 발견된 정적 코드 주입 취약점으로, 공격자가 post 파라미터를 통해 news.txt 파일에 임의의 PHP 코드를 주입할 수 있습니다. 주입된 코드는 display.php에 직접 접근하여 실행 가능하여 원격 코드 실행으로 이어집니다.

💡 쉬운 설명

악의적인 사용자가 뉴스 게시 기능을 악용해 서버의 파일에 악성 코드를 숨긴 후, 특정 파일에 직접 접근하여 실행시킬 수 있습니다. 공격자는 이를 통해 서버 전체를 제어할 수 있습니다.

🇺🇸 원문 (English)

Static code injection vulnerability in post.php in Simple PHP News 1.0 final allows remote attackers to inject arbitrary PHP code into news.txt via the post parameter, and then execute the code via a direct request to display.php. NOTE: some of these details are obtained from third party information.

📍 영향받는 시스템

Simple PHP News version 1.0 final

⚔️ 공격 벡터

POST 요청의 post 파라미터를 통해 news.txt에 PHP 코드 주입 후 display.php 직접 요청으로 코드 실행

🛡️ 대응 방법

Simple PHP News를 최신 버전으로 업그레이드하거나 패치 적용, 입력값 검증 및 sanitization 구현 필수

🔧 검증 코드

post.php와 display.php가 동일 디렉토리에서 발견되고 news.txt가 쓰기 가능하면 해당 버전이 설치된 것으로 판단

Shell / Script
find /var/www -type f \( -name 'post.php' -o -name 'display.php' \) 2>/dev/null | head -5

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP