CVE-2024-51225
Received Received - Intake

Stored XSS in Phpgurukul Vehicle System /admin/add-brand.php

Vulnerability report for CVE-2024-51225, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-03-23

Last updated on: 2026-03-24

Assigner: MITRE

Description

A stored cross-site scripting (XSS) vulnerability in the component /admin/add-brand.php of Phpgurukul Vehicle Record Management System v1.0 allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload into the brandname parameter.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-03-23
Last Modified
2026-03-24
Generated
2026-07-26
AI Q&A
2026-03-23
EPSS Evaluated
2026-07-25
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
phpgurukul vehicle_record_management_system 1.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2024-51225 is a stored cross-site scripting (XSS) vulnerability in the Phpgurukul Vehicle Record Management System version 1.0. It occurs in the admin interface, specifically in the /admin/add-brand.php component where the brandname parameter is accepted and stored without any sanitization.

The vulnerability is a second-order stored XSS, meaning the malicious payload is injected in one page (/admin/add-brand.php) and executed in another (/admin/add-vehicle.php). The stored brand name is rendered directly inside HTML option tags without encoding, allowing embedded JavaScript to execute when an admin visits the Add Vehicle page.

Detection Guidance

[{'type': 'paragraph', 'content': 'This vulnerability is a second-order stored XSS affecting the brandname parameter in /admin/add-brand.php and executing in /admin/add-vehicle.php. Detection involves verifying if malicious scripts can be injected and later executed when rendering brand names.'}, {'type': 'paragraph', 'content': "A practical detection method is to attempt injecting a test payload such as <script>alert('CVE-2024-51225')</script> into the brandname field via the Add Brand page and then checking if the script executes on the Add Vehicle page."}, {'type': 'paragraph', 'content': 'For automated or manual checks, you can use web application testing tools or commands like curl to POST a payload and then fetch the page to see if the payload executes.'}, {'type': 'list_item', 'content': 'Inject payload using curl: curl -X POST -d "brandname=<script>alert(\'test\')</script>&submit=Submit" https://target/admin/add-brand.php'}, {'type': 'list_item', 'content': 'Check execution by accessing the Add Vehicle page and observing if the alert triggers or if the payload appears unencoded in the HTML source.'}, {'type': 'paragraph', 'content': 'Because this is a second-order XSS, network detection tools may not easily detect it; manual or scripted testing of the application interface is recommended.'}] [1]

Impact Analysis

This vulnerability allows attackers to execute arbitrary JavaScript in the context of authenticated admin users visiting the Add Vehicle page.

  • Execution of malicious scripts can lead to session hijacking by stealing admin cookies.
  • It can enable privilege escalation and potentially full admin account takeover.
  • There is a supply chain risk if brand data is imported in bulk, potentially compromising all admins.
  • The second-order nature of the XSS can bypass simple web application firewall (WAF) rules, making detection and prevention harder.
Compliance Impact

I don't know

Mitigation Strategies

[{'type': 'paragraph', 'content': 'Immediate mitigation steps include applying proper output encoding and input sanitization to prevent execution of malicious scripts.'}, {'type': 'list_item', 'content': 'Modify the code that renders brand names in /admin/add-vehicle.php to use htmlspecialchars() or equivalent to encode output, for example: echo \'<option value="\' . $row[\'id\'] . \'">\' . htmlspecialchars($row[\'BrandName\'], ENT_QUOTES, \'UTF-8\') . \'</option>\';'}, {'type': 'list_item', 'content': "Sanitize input on /admin/add-brand.php before storing it in the database, for example: $brandname = htmlspecialchars(trim($_POST['brandname']), ENT_QUOTES, 'UTF-8');"}, {'type': 'list_item', 'content': 'Implement server-side validation to restrict brand names to alphanumeric characters and limited punctuation.'}, {'type': 'list_item', 'content': 'Deploy Content Security Policy (CSP) headers to restrict script execution in the admin interface.'}, {'type': 'paragraph', 'content': 'These steps will prevent malicious scripts from being stored and executed, mitigating the risk of session hijacking, privilege escalation, and admin takeover.'}] [1]

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2024-51225. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart