vendor:
Petrol Pump Management Software
by:
Shubham Pandey
4.1
CVSS
MEDIUM
Cross Site Scripting (XSS)
79
CWE
Product Name: Petrol Pump Management Software
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE: CVE-2024-27744
CPE: a:petrol_pump_management_software:petrol_pump_management_software:1.0
Platforms Tested: Windows, Linux
2024
Petrol Pump Management Software v.1.0 – Stored Cross Site Scripting via SVG file
An attacker can exploit a Cross Site Scripting vulnerability in Petrol Pump Management Software v.1.0 by injecting malicious code through a crafted payload into the image parameter in the profile.php component. By uploading a specially crafted xss.svg file, the attacker can execute arbitrary code. The content of the xss.svg file includes a script that triggers an alert message.
Mitigation:
To mitigate this vulnerability, sanitize and validate user inputs to prevent the execution of arbitrary code. Additionally, restrict file upload types and sizes, and implement Content Security Policy (CSP) headers to mitigate XSS attacks.