🇰🇷 한글 설명
PHPGurukul Online Shopping Portal Project 2.0의 /shopping/password-recovery.php 파일의 emailid 매개변수에서 SQL 주입 취약점이 발견되었습니다. 공격자는 원격에서 악의적인 SQL 쿼리를 주입하여 데이터베이스를 조작하거나 기밀 정보를 탈취할 수 있으며, 이미 공개되어 악용되고 있습니다.
💡 쉬운 설명
온라인 쇼핑 사이트의 비밀번호 찾기 기능에서 사용자 이메일 입력값을 제대로 검증하지 않아, 해커가 특수한 문자를 입력해서 데이터베이스에 불법 명령을 실행할 수 있습니다. 이를 통해 개인 정보 탈취나 계정 조작이 가능합니다.
🇺🇸 원문 (English)
A vulnerability has been found in PHPGurukul Online Shopping Portal Project 2.0. This vulnerability affects unknown code of the file /shopping/password-recovery.php. The manipulation of the argument emailid leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
📍 영향받는 시스템
PHPGurukul Online Shopping Portal Project 2.0 및 이전 버전
⚔️ 공격 벡터
원격에서 /shopping/password-recovery.php의 emailid 파라미터에 SQL 명령어를 포함시켜 SQL injection 공격 수행
🛡️ 대응 방법
입력값 검증 강화, 준비된 명령문(Prepared Statements) 사용, 특수문자 이스케이프 처리, 프로젝트 업그레이드 적용
🔧 검증 코드
SQL 에러 메시지나 비정상적인 응답이 반환되면 취약점이 존재하는 것이고, 에러 없이 정상 처리되면 방어되어 있거나 접근 불가능한 상태입니다.
curl -s 'http://target/shopping/password-recovery.php' -d "[email protected]' OR '1'='1" | grep -i 'error\|success\|sql' || echo 'Target unreachable or patched'