🔍 CVE-2013-3239

4.6
CVSS Score
MEDIUM
2013-04-26
2026-06-16 23:54
✅ 완료

🇰🇷 한글 설명

phpMyAdmin 3.5.8 이전 및 4.0.0-rc3 이전 버전에서 SaveDir 디렉토리 설정 시 인증된 사용자가 이중 확장자(.php.sql 등)를 이용한 내보내기 파일로 임의 코드를 실행할 수 있는 취약점입니다. Apache 웹 서버가 .php.sql 파일을 PHP로 실행 가능하게 해석합니다.

💡 쉬운 설명

phpMyAdmin에서 파일을 내보낼 때 .php.sql처럼 두 개의 확장자를 가진 파일을 만들 수 있으며, 이 파일이 PHP 코드로 실행될 수 있습니다. 로그인한 사용자가 악의적인 PHP 코드를 실행시킬 수 있습니다.

🇺🇸 원문 (English)

phpMyAdmin 3.5.x before 3.5.8 and 4.x before 4.0.0-rc3, when a SaveDir directory is configured, allows remote authenticated users to execute arbitrary code by using a double extension in the filename of an export file, leading to interpretation of this file as an executable file by the Apache HTTP Server, as demonstrated by a .php.sql filename.

📍 영향받는 시스템

phpMyAdmin 3.5.0~3.5.7, 4.0.0-alpha1~4.0.0-rc2

⚔️ 공격 벡터

SaveDir 설정된 phpMyAdmin에 로그인하여 데이터베이스를 .php.sql 확장자로 내보낸 후 웹 브라우저에서 접근하여 코드 실행

🛡️ 대응 방법

phpMyAdmin을 3.5.8 또는 4.0.0-rc3 이상으로 업그레이드하거나 Apache 설정에서 SaveDir 위치의 PHP 실행 비활성화

🔧 검증 코드

phpMyAdmin 버전 확인 - 3.5.8 이상 또는 4.0.0-rc3 이상이면 안전, 그 이하면 취약

Shell / Script
grep -r 'PMA_VERSION\|__version__' /path/to/phpmyadmin/*.php 2>/dev/null | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache HTTP Server