🔍 CVE-2009-4884

6.8
CVSS Score
MEDIUM
2010-06-11
2026-04-29 01:13
✅ 완료

🇰🇷 한글 설명

phpCommunity 2 2.1.8에서 magic_quotes_gpc가 비활성화되었을 때, 여러 파라미터(forum_id, topic_id, wert)를 통해 SQL injection 공격이 가능합니다. 공격자는 index.php의 다양한 액션(포럼, 검색 등)을 이용해 임의의 SQL 명령을 실행할 수 있으며, class_forum.php와 class_search.php 파일이 영향을 받습니다.

💡 쉬운 설명

웹사이트가 사용자 입력을 제대로 검증하지 않아 악의적인 SQL 명령을 실행하도록 속을 수 있습니다. 공격자가 검색창이나 포럼 필터에 특수한 문자를 입력하면 데이터베이스를 손상시키거나 정보를 탈취할 수 있습니다.

🇺🇸 원문 (English)

Multiple SQL injection vulnerabilities in phpCommunity 2 2.1.8, when magic_quotes_gpc is disabled, allow remote attackers to execute arbitrary SQL commands via (1) the forum_id parameter in a forum action to index.php, (2) the topic_id parameter in a forum action to index.php, (3) the wert parameter in an id search action to index.php, (4) the wert parameter in a nick search action to index.php, or (5) the wert parameter in a forum search action to index.php, related to class_forum.php and class_search.php.

📍 영향받는 시스템

phpCommunity 2 버전 2.1.8 (magic_quotes_gpc 비활성화 상태)

⚔️ 공격 벡터

GET/POST 파라미터 조작: /index.php?action=forum&forum_id=[SQL] 또는 search 액션의 wert 파라미터에 SQL 페이로드 삽입

🛡️ 대응 방법

phpCommunity를 최신 버전으로 업그레이드하거나 prepared statements 사용, 입력값 필터링 및 magic_quotes_gpc 활성화

🔧 검증 코드

결과에서 mysql_real_escape_string이나 prepared statement 없이 직접 $_GET을 사용하는 코드가 나타나면 취약점이 존재합니다

Shell / Script
grep -r "\$_GET\[.*forum_id" /var/www/phpCommunity/ 2>/dev/null | grep -v mysql_real_escape_string

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP