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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-46073 PoC — Sourcecodester Vehicle Service Management System 跨站脚本漏洞

Source
Associated Vulnerability
Title:Sourcecodester Vehicle Service Management System 跨站脚本漏洞 (CVE-2021-46073)
Description:Sourcecodester Vehicle Service Management System是开源的一个PHP 项目。用于汽车维修/服务店或企业的简单 Web 应用程序。 Sourcecodester Vehicle Service Management System 1.0版本存在跨站脚本漏洞,该漏洞源于该漏洞源于软件的登录面板的用户列表部分缺少有效的过滤和转义,导致存储型跨站点脚本漏洞。
Description
CVE-2021-46073 - A Stored Cross Site Scripting (XSS) vulnerability exists in Sourcecodester Vehicle Service Management System 1.0 via the User List Section in login panel.
Readme
# CVE-2021-46073

### Exploit Title: Vehicle Service Management System - 'User List' Stored Cross Site Scripting (XSS)
### Exploit Author: <a href="https://www.plsanu.com">P.L.Sanu</a>
### CVE: CVE-2021-46073
### CVSS: 4.8 MEDIUM
### References: 
- https://www.plsanu.com/vehicle-service-management-system-user-list-stored-cross-site-scripting-xss
- https://nvd.nist.gov/vuln/detail/CVE-2021-46073
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46073

### Description:
A Stored Cross Site Scripting (XSS) vulnerability exists in Sourcecodester Vehicle Service Management System 1.0 via the User List Section in login panel.

### Exploit:
1. Login to the admin panel http://localhost/vehicle_service/admin
2. Navigate to User List section and click on Create New button. 
3. Inject the below payload in First Name & Last Name input field.

### Payload:
```html
 "><script>alert(document.cookie)</script>
```

4. Click on Save button.
5. Malicious javascript code triggered.

### Impact:
An attacker can able to inject malicious JavaScript code in User List Section.

### Mitigation:
It is recommended to sanitize all the input fields throughout the application.
File Snapshot

[4.0K] /data/pocs/75376836a156bd4740b12db0055b613ce8d21adf └── [1.1K] README.md 0 directories, 1 file
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.