🇰🇷 한글 설명
PHPGurukul Online Shopping Portal Project 2.0의 /shopping/signup.php 파일에서 emailid 매개변수에 대한 검증이 부족하여 SQL injection 공격이 가능합니다. 원격 공격자가 악의적인 SQL 구문을 주입하여 데이터베이스를 직접 조작할 수 있습니다.
💡 쉬운 설명
온라인 쇼핑몰 가입 페이지의 이메일 입력란에 특수한 SQL 명령어를 입력하면 데이터베이스 내용을 볼 수 있거나 조작할 수 있습니다. 공격 방법이 공개되었으므로 즉시 업데이트가 필요합니다.
🇺🇸 원문 (English)
A vulnerability was determined in PHPGurukul Online Shopping Portal Project 2.0. Affected by this issue is some unknown functionality of the file /shopping/signup.php. The manipulation of the argument emailid leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
📍 영향받는 시스템
PHPGurukul Online Shopping Portal Project 2.0 이하
⚔️ 공격 벡터
POST 요청을 통해 /shopping/signup.php의 emailid 파라미터에 SQL injection payload 삽입
🛡️ 대응 방법
PHP 버전 업그레이드 또는 입력값 검증 강화(prepared statements 사용, 입력값 sanitization 적용)
🔧 검증 코드
signup.php에서 emailid 변수 사용 위치를 확인하여 SQL 인젝션 방어 코드(prepared statement, escaping) 유무를 점검합니다.
grep -r 'emailid' /var/www/html/shopping/ 2>/dev/null | head -5