🇰🇷 한글 설명
phpHeaven Team PHPMyChat 0.14.5 및 이전 버전의 chat/messagesL.php3 파일에서 SQL 인젝션 취약점이 발견되었습니다. 공격자는 T 파라미터를 통해 임의의 SQL 명령을 실행할 수 있으며, 이후 사용자 이름이 eval() 함수로 처리되는 과정에서 원격 셸 명령 실행으로 이어질 수 있습니다.
💡 쉬운 설명
채팅 프로그램의 입력창에 특수한 코드를 넣어 데이터베이스를 조작할 수 있는 취약점입니다. 이를 통해 공격자가 서버의 제어권을 획득하여 마음대로 명령어를 실행할 수 있게 됩니다.
🇺🇸 원문 (English)
SQL injection vulnerability in chat/messagesL.php3 in phpHeaven Team PHPMyChat 0.14.5 and earlier allows remote attackers to execute arbitrary SQL commands via the T parameter. NOTE: this issue can be leveraged to execute arbitrary shell commands since the username is later processed in an eval() call, but since the username originated from the SQL injection, it could be a resultant issue.
📍 영향받는 시스템
phpHeaven Team PHPMyChat 0.14.5 및 이전 버전
⚔️ 공격 벡터
HTTP 요청의 T 파라미터를 통한 SQL 인젝션 및 후속 eval() 함수를 이용한 원격 코드 실행(RCE)
🛡️ 대응 방법
최신 버전으로 업데이트하거나, 입력값 검증 및 Prepared Statement를 적용하고 위험한 eval() 함수 사용을 제거해야 합니다.
🔧 검증 코드
출력된 PHPMyChat의 버전이 0.14.5 이하인 경우 취약한 상태입니다.
grep -r "PHPMyChat" /var/www/html | grep -E "0\.[0-9]+(\.[0-9]+)?"