Headline
CVE-2021-46080: GitHub - plsanu/Vehicle-Service-Management-System-Multiple-Cross-Site-Request-Forgery-CSRF-Leads-to-XSS: Vehicle Service Management System - 'Multiple' Cross-Site Request Forgery (CSRF) Leads to Store
A Cross Site Request Forgery (CSRF) vulnerability exists in Vehicle Service Management System 1.0. An successful CSRF attacks leads to Stored Cross Site Scripting Vulnerability.
Vehicle Service Management System - ‘Multiple’ Cross-Site Request Forgery (CSRF) Leads to Stored Cross Site Scripting (XSS)
Vehicle Service Management System - ‘Multiple’ Cross-Site Request Forgery (CSRF) Leads to Stored Cross Site Scripting (XSS)
Exploit Title: Vehicle Service Management System - ‘Multiple’ Cross-Site Request Forgery (CSRF) Leads to Stored Cross Site Scripting (XSS)****Date: 29/12/2021****Exploit Author: P.L.Sanu****Exploit Author Website: https://www.plsanu.com****Vendor Homepage: https://www.sourcecodester.com****Software Link: https://www.sourcecodester.com/php/14972/vehicle-service-management-system-php-free-source-code.html****Version: <= 1.0****Tested on: Windows 10****CVE :****Google Dork: N/A****Reference:
- https://www.plsanu.com/vehicle-service-management-system-multiple-cross-site-request-forgery-csrf-leads-to-stored-cross-site-scripting-xss
- https://github.com/plsanu/Vehicle-Service-Management-System-Multiple-Cross-Site-Request-Forgery-CSRF-Leads-to-XSS
1. Vehicle Service Management System - ‘Mechanic List’ (/admin/?page=mechanics)****Steps to Reproduce:
- Visit the admin panel http://localhost/vehicle_service/admin
- Create two admin accounts.
- Login the Admin-1 account in Browser A (Chrome)
- Login the Admin-2 account in Browser B (Firefox)
- In Admin-1 account(Chrome) navigate to the Mechanic List section and click on Create New button.
- Inject the payload "><script>alert(document.cookie)</script> in Full Name input field.
- Click on Save button.
- Capture the request in burpsuite and generate the CSRF Html File.
- Save the CSRF Html file For Ex: CSRF.html
- In Browser B (Firefox) browse the CSRF.html file.
- Navigate to the Mechanic List section in Browser B (Firefox).
- Malicious javascript code triggered.
2. Vehicle Service Management System - ‘Service Requests’ (/admin/?page=service_requests)****Steps to Reproduce:
- Visit the admin panel http://localhost/vehicle_service/admin
- Create two admin accounts.
- Login the Admin-1 account in Browser A (Chrome)
- Login the Admin-2 account in Browser B (Firefox)
- In Admin-1 account(Chrome) navigate to the Service Requests section and click on Create New button.
- Inject the payload "><script>alert(document.cookie)</script> in Owner Contact input field.
- Click on Save Request button.
- Capture the request in burpsuite and generate the CSRF Html File.
- Save the CSRF Html file For Ex: CSRF.html
- In Browser B (Firefox) browse the CSRF.html file.
- Navigate to the Service Requests section in Browser B (Firefox).
- Choose the newly created Service Requests and click on Action under View.
- Malicious javascript code triggered.
3. Vehicle Service Management System - ‘Category List’ (/admin/?page=maintenance/category)****Steps to Reproduce:
- Visit the admin panel http://localhost/vehicle_service/admin
- Create two admin accounts.
- Login the Admin-1 account in Browser A (Chrome)
- Login the Admin-2 account in Browser B (Firefox)
- In Admin-1 account(Chrome) navigate to the Category List section and click on Create New button.
- Inject the payload "><script>alert(document.cookie)</script> in Category Name input field.
- Click on Save button.
- Capture the request in burpsuite and generate the CSRF Html File.
- Save the CSRF Html file For Ex: CSRF.html
- In Browser B (Firefox) browse the CSRF.html file.
- Navigate to the Category List section in Browser B (Firefox).
- Malicious javascript code triggered.
4. Vehicle Service Management System - ‘Service List’ (/admin/?page=maintenance/services)****Steps to Reproduce:
- Visit the admin panel http://localhost/vehicle_service/admin
- Create two admin accounts.
- Login the Admin-1 account in Browser A (Chrome)
- Login the Admin-2 account in Browser B (Firefox)
- In Admin-1 account(Chrome) navigate to the Service List section and click on Create New button.
- Inject the payload "><script>alert(document.cookie)</script> in Service Name input field.
- Click on Save button.
- Capture the request in burpsuite and generate the CSRF Html File.
- Save the CSRF Html file For Ex: CSRF.html
- In Browser B (Firefox) browse the CSRF.html file.
- Navigate to the Service List section in Browser B (Firefox).
- Malicious javascript code triggered.
5. Vehicle Service Management System - ‘User List’ (/admin/?page=user/list)****Steps to Reproduce:
- Visit the admin panel http://localhost/vehicle_service/admin
- Create two admin accounts.
- Login the Admin-1 account in Browser A (Chrome)
- Login the Admin-2 account in Browser B (Firefox)
- In Admin-1 account(Chrome) navigate to the User List section and click on Create New button.
- Inject the payload "><script>alert(document.cookie)</script> in First Name input field.
- Click on Save button.
- Capture the request in burpsuite and generate the CSRF Html File.
- Save the CSRF Html file For Ex: CSRF.html
- In Browser B (Firefox) browse the CSRF.html file.
- Navigate to the User List section in Browser B (Firefox).
- Malicious javascript code triggered.
6. Vehicle Service Management System - ‘Settings’ (/admin/?page=system_info)****Steps to Reproduce:
- Visit the admin panel http://localhost/vehicle_service/admin
- Create two admin accounts.
- Login the Admin-1 account in Browser A (Chrome)
- Login the Admin-2 account in Browser B (Firefox)
- In Admin-1 account(Chrome) navigate to the Settings section.
- Inject the payload "><script>alert(document.cookie)</script> in System Name input field.
- Click on Update button.
- Capture the request in burpsuite and generate the CSRF Html File.
- Save the CSRF Html file For Ex: CSRF.html
- In Browser B (Firefox) browse the CSRF.html file.
- Navigate to the Settings section in Browser B (Firefox).
- Malicious javascript code triggered.