🇰🇷 한글 설명
PhpShop 0.8.1의 index.php에서 module_id, vendor_id, user_id, category 등 여러 매개변수의 입력 검증 부족으로 SQL 주입 취약점이 발생합니다. 공격자는 admin, vendor, store, tax 섹션의 다양한 기능을 통해 임의의 SQL 명령을 실행할 수 있습니다.
💡 쉬운 설명
온라인 쇼핑몰 프로그램(PhpShop)이 사용자 입력을 제대로 검증하지 않아 해커가 데이터베이스에 직접 접근할 수 있습니다. URL에 SQL 코드를 삽입하여 데이터를 유출, 수정, 삭제할 수 있습니다.
🇺🇸 원문 (English)
Multiple SQL injection vulnerabilities in index.php in PhpShop 0.8.1 allow remote attackers to execute arbitrary SQL commands via the (1) module_id parameter in an admin/function_list action, the (2) vendor_id parameter in a vendor/vendor_form action, the (3) module_id parameter in an admin/module_form action, the (4) user_id parameter in an admin/user_form action, the (5) vendor_category_id parameter in a vendor/vendor_category_form action, the (6) user_id parameter in a store/user_form action, the (7) payment_method_id parameter in a store/payment_method_form action, the (8) tax_rate_id parameter in a tax/tax_form action, or the (9) category parameter in a shop/browse action. NOTE: the product_id vector is already covered by CVE-2008-0681.
📍 영향받는 시스템
PhpShop 0.8.1 (및 이전 버전)
⚔️ 공격 벡터
HTTP 요청 매개변수(GET/POST)에 SQL 페이로드 삽입으로 admin/function_list, vendor/vendor_form, store/user_form 등 다양한 기능 악용
🛡️ 대응 방법
PhpShop을 0.8.2 이상으로 업그레이드하거나, 모든 데이터베이스 쿼리에 prepared statement와 parameterized queries 적용
🔧 검증 코드
명령어 실행 결과 버전 0.8.1 또는 그 이하가 표시되면 취약합니다. 결과가 없으면 PhpShop 미설치 또는 패치된 버전입니다.
find / -name 'index.php' -path '*phpshop*' -type f 2>/dev/null | xargs grep -l 'version\|VERSION' | head -1 | xargs grep -E 'version.*0\.8\.[01]' 2>/dev/null