🇰🇷 한글 설명
PHPGurukul Online Shopping Portal Project 2.1의 /order-details.php 파일에서 orderid 매개변수를 통해 SQL Injection 공격이 가능한 취약점이 발견되었습니다. 공격자는 악의적인 SQL 코드를 주입하여 데이터베이스에 무단으로 접근하거나 조작할 수 있습니다.
💡 쉬운 설명
온라인 쇼핑 사이트의 주문 상세 페이지에서 주문번호(orderid)를 받을 때 입력값을 제대로 검증하지 않아, 해커가 특수 명령어를 섞어 보내면 데이터베이스를 직접 조회하거나 변조할 수 있습니다. 이를 통해 개인정보 유출이나 데이터 손상이 발생할 수 있습니다.
🇺🇸 원문 (English)
A security flaw has been discovered in PHPGurukul Online Shopping Portal Project 2.1. The affected element is an unknown function of the file /order-details.php of the component Parameter Handler. The manipulation of the argument orderid results in sql injection. It is possible to launch the attack remotely.
📍 영향받는 시스템
PHPGurukul Online Shopping Portal Project 2.1
⚔️ 공격 벡터
GET/POST 요청의 orderid 파라미터에 SQL 페이로드를 삽입하여 /order-details.php에 전송
🛡️ 대응 방법
Prepared Statements(파라미터화된 쿼리) 사용, 입력값 검증 및 이스케이프 처리, 데이터베이스 사용자 권한 최소화
🔧 검증 코드
결과에서 orderid 파라미터가 직접 SQL 쿼리에 삽입되는 부분이 있으면 취약함; prepared statements 사용이 보이면 패치됨
grep -r "orderid" /path/to/phpgurukul --include='*.php' | grep -v 'prepared\|parameterized\|\$' | head -5