🇰🇷 한글 설명
PHP-Bookstore-Website-Example 및 PHP Basic BookStore Website의 /index.php 수량 처리 컴포넌트에서 입력 값 검증 미흡으로 인한 취약점이다. 공격자는 원격으로 부적절한 수량 값을 전송하여 주문 로직을 조작할 수 있다.
💡 쉬운 설명
온라인 서점 웹사이트에서 상품 수량을 입력할 때 제대로 된 검증이 없어서, 잘못된 수량 값을 보낼 수 있다. 이를 악용하면 주문 시스템을 교란시키거나 부정한 거래를 시도할 수 있다.
🇺🇸 원문 (English)
A vulnerability has been found in ywxbear PHP-Bookstore-Website-Example and PHP Basic BookStore Website up to 0e0b9f542f7a2d90a8d7f8c83caca69294e234e4. This issue affects some unknown processing of the file /index.php of the component Quantity Handler. Such manipulation leads to improper validation of specified quantity in input. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. This product operates on a rolling release basis, ensuring continuous delivery. Consequently, there are no version details for either affected or updated releases.
📍 영향받는 시스템
PHP-Bookstore-Website-Example, PHP Basic BookStore Website (commit 0e0b9f542f7a2d90a8d7f8c83caca69294e234e4까지 모든 버전)
⚔️ 공격 벡터
/index.php 컴포넌트의 Quantity Handler로 음수나 초과 수량 값을 직접 전송하여 검증 우회
🛡️ 대응 방법
/index.php에서 수량 입력값에 대해 정수 범위 검증 및 양수 확인 로직 추가
🔧 검증 코드
명령어가 'Vulnerable'을 출력하면 검증 로직 부재, 'Protected'면 검증 로직 존재를 의미
grep -n 'quantity' /path/to/index.php | grep -v 'isset\|intval\|validate' && echo 'Vulnerable' || echo 'Protected'