🔍 CVE-2012-4472

5.1
CVSS Score
MEDIUM
2012-11-30
2026-04-29 01:13
✅ 완료

🇰🇷 한글 설명

Drupal Drag & Drop Gallery 모듈 6.x-1.5 이전 버전의 upload.php에서 제한되지 않은 파일 업로드 취약점이 존재합니다. 공격자는 실행 가능한 확장자 뒤에 안전한 확장자를 붙인 파일을 업로드하여 임의의 PHP 코드 실행이 가능합니다. filedir 파라미터로 지정된 디렉토리에 직접 접근하면 악성 파일을 실행할 수 있습니다.

💡 쉬운 설명

Drupal 웹사이트에서 파일을 업로드하는 기능에 보안 구멍이 있어서, 악의적인 사용자가 위험한 코드를 숨겨서 업로드하고 실행할 수 있습니다. 파일명을 위조하여 시스템 검사를 우회한 후 직접 접근해서 악성 파일을 실행합니다.

🇺🇸 원문 (English)

Unrestricted file upload vulnerability in upload.php in the Drag & Drop Gallery module 6.x-1.5 and earlier for Drupal allows remote attackers to execute arbitrary PHP code by uploading a file with an executable extension followed by a safe extension, then accessing it via a direct request to the directory specified by the filedir parameter.

📍 영향받는 시스템

Drupal Drag & Drop Gallery module 6.x-1.5 및 이전 버전

⚔️ 공격 벡터

PHP 확장자를 안전한 확장자로 위장하여 업로드 후, 직접 URL 접근으로 PHP 코드 실행

🛡️ 대응 방법

Drag & Drop Gallery 모듈을 최신 버전으로 업데이트하거나 불필요한 경우 모듈 제거, 업로드 디렉토리에서 PHP 실행 비활성화

🔧 검증 코드

모듈이 설치되어 있으면 버전 정보를 표시하고 'not found' 메시지가 나오면 미설치 상태입니다. 버전이 6.x-1.5 이하면 업데이트 필요합니다.

Shell / Script
find /var/www/html -path '*/modules/drag_drop_gallery*' -type d 2>/dev/null | head -1 && grep -h 'version' /var/www/html/sites/all/modules/drag_drop_gallery/drag_drop_gallery.info 2>/dev/null || echo 'Module not found'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP