🔍 CVE-2012-5304

7.5
CVSS Score
HIGH
2012-10-06
2026-04-29 01:13
✅ 완료

🇰🇷 한글 설명

YVS Image Gallery의 administration/install.php에서 발생하는 정적 코드 주입 취약점으로, 원격 공격자가 functions/db_connect.php에 임의의 PHP 코드를 주입할 수 있습니다. 설치 후 관리자가 install.php를 삭제하지 않거나 접근 제한을 설정하지 않을 때 발생합니다.

💡 쉬운 설명

YVS Image Gallery 설치 페이지가 보호되지 않아 해커가 악의적인 PHP 코드를 주입할 수 있는 문제입니다. 설치 완료 후 설치 폴더를 삭제하지 않으면 누구나 접근할 수 있게 됩니다.

🇺🇸 원문 (English)

Static code injection vulnerability in administration/install.php in YVS Image Gallery allows remote attackers to inject arbitrary PHP code into functions/db_connect.php via unspecified vectors. NOTE: this is only a vulnerability when the administrator does not follow recommendations in the product's installation documentation.

📍 영향받는 시스템

YVS Image Gallery (administration/install.php가 웹 접근 가능한 모든 버전)

⚔️ 공격 벡터

administration/install.php에 직접 접근하여 매개변수를 조작해 functions/db_connect.php에 PHP 코드 주입

🛡️ 대응 방법

설치 완료 후 administration/install.php 및 install 폴더 완전 삭제, 또는 웹서버 접근 제한(htaccess/nginx 설정)

🔧 검증 코드

install.php 파일이 발견되면 취약한 상태이며, 발견되지 않으면 정상적으로 제거되었습니다.

Shell / Script
find /var/www -name install.php -path '*/administration/*' 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP