🔍 CVE-2009-3890

6.0
CVSS Score
MEDIUM
2009-11-17
2026-06-16 23:12
✅ 완료

🇰🇷 한글 설명

WordPress의 wp_check_filetype 함수가 다중 확장자 파일명(.php.jpg)에 대한 검증을 제대로 수행하지 못하여, 인증된 사용자가 악의적 파일을 업로드할 수 있는 취약점입니다. Apache mod_mime 특정 설정에서 .php.jpg 파일이 .jpg로 인식되어 업로드되더라도, 직접 접근 시 .php로 실행되어 임의 코드 실행이 가능합니다.

💡 쉬운 설명

WordPress 관리자가 여러 확장자를 가진 파일(.php.jpg)을 업로드하면, 시스템이 이를 이미지로 착각하지만 실제로는 PHP 코드가 실행됩니다. 이를 통해 해커가 서버를 완전히 장악할 수 있습니다.

🇺🇸 원문 (English)

Unrestricted file upload vulnerability in the wp_check_filetype function in wp-includes/functions.php in WordPress before 2.8.6, when a certain configuration of the mod_mime module in the Apache HTTP Server is enabled, allows remote authenticated users to execute arbitrary code by posting an attachment with a multiple-extension filename, and then accessing this attachment via a direct request to a wp-content/uploads/ pathname, as demonstrated by a .php.jpg filename.

📍 영향받는 시스템

WordPress 2.8.6 이전 버전 (Apache HTTP Server의 mod_mime 특정 설정 적용 시)

⚔️ 공격 벡터

인증된 사용자가 다중 확장자 파일명으로 악성 PHP 파일을 첨부 업로드한 후 wp-content/uploads/ 경로로 직접 접근하여 실행

🛡️ 대응 방법

WordPress를 2.8.6 이상으로 업그레이드하고, wp-content/uploads 디렉토리에서 PHP 실행을 비활성화하며, 파일 업로드 검증 강화

🔧 검증 코드

2.8.6 이상의 버전이 표시되면 취약점이 패치된 상태입니다. 버전을 찾을 수 없으면 WordPress 설치 경로를 확인하세요.

Shell / Script
grep -h "WP_VERSION" /var/www/html/wp-includes/version.php 2>/dev/null || echo "WordPress not found at /var/www/html"

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache HTTP Server