🔍 CVE-2008-7210

7.5
CVSS Score
HIGH
2009-09-11
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

AJchat 0.10의 directory.php에서 입력 검증 우회로 인해 SQL Injection 공격이 가능한 취약점입니다. 공격자가 $_GET["s"] 변수의 해시값과 일치하는 숫자 파라미터를 전달하면 PHP의 unset 함수 버그(CVE-2006-3017)를 악용하여 보안 검사를 우회할 수 있습니다.

💡 쉬운 설명

AJchat 채팅 프로그램에서 특정 방식의 입력값을 보내면 데이터베이스를 직접 조작하는 공격(SQL Injection)이 가능합니다. 이는 프로그램의 입력 검증 시스템이 제대로 작동하지 않기 때문입니다.

🇺🇸 원문 (English)

directory.php in AJchat 0.10 allows remote attackers to bypass input validation and conduct SQL injection attacks via a numeric parameter with a value matching the s parameter's hash value, which prevents the associated $_GET["s"] variable from being unset. NOTE: it could be argued that this vulnerability is due to a bug in the unset PHP command (CVE-2006-3017) and the proper fix should be in PHP; if so, then this should not be treated as a vulnerability in AJChat.

📍 영향받는 시스템

AJchat 0.10 (directory.php 파일)

⚔️ 공격 벡터

GET 파라미터의 해시값 불일치를 악용하여 SQL 쿼리 조작

🛡️ 대응 방법

AJchat을 최신 버전으로 업그레이드 또는 PHP 버전 업데이트(CVE-2006-3017 수정 버전)

🔧 검증 코드

SQL 에러 메시지가 응답에 나타나면 취약점이 존재하는 것입니다. 단, 실제 테스트는 대상 시스템의 승인 하에만 수행해야 합니다.

Shell / Script
curl -s http://target/directory.php?s=$(echo -n test | md5sum | cut -d' ' -f1) 2>/dev/null | grep -q 'SQL' && echo 'Vulnerable' || echo 'Not vulnerable'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP