🔍 CVE-2011-4899

7.5
CVSS Score
HIGH
2012-01-30
2026-11-03 17:17
✅ 완료

🇰🇷 한글 설명

WordPress 3.3.1 이하의 설치 구성 요소에서 MySQL 데이터베이스 서비스 검증이 부족하여, 공격자가 임의의 데이터베이스를 구성할 수 있습니다. 이를 통해 정적 코드 주입 및 XSS 공격을 수행할 수 있으며, HTTP 요청이나 MySQL 쿼리를 통해 원격 코드 실행이 가능합니다.

💡 쉬운 설명

WordPress 설치 페이지에서 데이터베이스 설정 시 입력값 검증이 없어서, 공격자가 악의적인 데이터베이스를 연결하여 코드 실행이 가능합니다. WordPress를 최신 버전으로 업데이트하면 해결됩니다.

🇺🇸 원문 (English)

wp-admin/setup-config.php in the installation component in WordPress 3.3.1 and earlier does not ensure that the specified MySQL database service is appropriate, which allows remote attackers to configure an arbitrary database via the dbhost and dbname parameters, and subsequently conduct static code injection and cross-site scripting (XSS) attacks via (1) an HTTP request or (2) a MySQL query. NOTE: the vendor disputes the significance of this issue; however, remote code execution makes the issue important in many realistic environments

📍 영향받는 시스템

WordPress 3.3.1 이하 모든 버전

⚔️ 공격 벡터

wp-admin/setup-config.php의 dbhost, dbname 파라미터를 통한 비인증 원격 공격

🛡️ 대응 방법

WordPress를 3.3.2 이상으로 업데이트하거나 wp-admin/setup-config.php 파일에 데이터베이스 호스트/이름 입력값 검증 로직 추가

🔧 검증 코드

wp-admin/setup-config.php 파일이 존재하고 접근 가능하면 취약점 존재; 파일이 없거나 접근 불가면 이미 설치 완료 또는 버전 업데이트됨

Shell / Script
grep -r 'setup-config.php' /var/www/html/wp-admin/ 2>/dev/null | head -1 && curl -s http://localhost/wp-admin/setup-config.php | grep -q 'dbhost' && echo 'Vulnerable' || echo 'Not Found'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

MySQL