Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-2377 Overview
CVE-2025-2377 is a reflected cross-site scripting (XSS) vulnerability in Janobe Vehicle Management System 1.0, distributed through SourceCodester. The flaw resides in /confirmbooking.php, where the id parameter is reflected into the response without sanitization. An authenticated remote attacker can craft a URL that executes arbitrary JavaScript in a victim's browser session. The exploit technique has been publicly disclosed, increasing the likelihood of opportunistic abuse against exposed instances. The initial researcher advisory contains contradictory product references, but the vulnerable file and parameter are confirmed.
Critical Impact
Successful exploitation enables script execution in the victim's browser context, which can be leveraged for session theft, UI redress, or targeted phishing against application users.
Affected Products
- Janobe Vehicle Management System 1.0
- Distributed via SourceCodester
- Vulnerable component: /confirmbooking.php (id parameter)
Discovery Timeline
- 2025-03-17 - CVE-2025-2377 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-2377
Vulnerability Analysis
The vulnerability is a classic reflected XSS flaw [CWE-79] in the booking confirmation workflow of Janobe Vehicle Management System 1.0. The /confirmbooking.php endpoint accepts an id query parameter and renders its value into the HTML response without applying contextual output encoding or input validation. An attacker who can convince an authenticated user to visit a crafted link can inject arbitrary HTML or JavaScript. The injected payload executes with the privileges of the targeted user session.
Because the application manages vehicle bookings, an attacker who steals an active session can view or modify booking records tied to that user. Exploitation requires low privileges and user interaction, and can be launched over the network. A public write-up of the issue has been circulated, which lowers the barrier for commodity exploitation.
Root Cause
The root cause is missing output encoding on a user-controlled request parameter. The id value flows from the HTTP request directly into the HTML page returned by /confirmbooking.php. No sanitization, allow-listing, or HTML entity encoding is applied before reflection. See the GitHub XSS Vulnerability Report for the reporter's reproduction details.
Attack Vector
An attacker crafts a URL targeting /confirmbooking.php with a malicious JavaScript payload in the id parameter. The attacker delivers the link to an authenticated user through phishing, chat, or an attacker-controlled page. When the victim loads the URL, the payload is reflected into the page and executed in the victim's browser. Impact includes session cookie theft, token exfiltration, forced actions against the booking workflow, and credential harvesting through injected forms.
For additional context, see VulDB entry #299876 and the CTI record.
Detection Methods for CVE-2025-2377
Indicators of Compromise
- HTTP requests to /confirmbooking.php where the id parameter contains HTML tags, script keywords, event handlers such as onerror= or onload=, or URL-encoded equivalents (%3Cscript%3E).
- Referer logs showing external domains preceding access to /confirmbooking.php.
- Browser console errors or unexpected outbound requests from authenticated sessions tied to the booking workflow.
Detection Strategies
- Deploy a web application firewall (WAF) rule that inspects the id query parameter on /confirmbooking.php for script injection patterns and encoded variants.
- Enable application-layer logging that captures full query strings on booking endpoints for retrospective hunting.
- Correlate suspicious URL click-through from email gateways with subsequent authenticated access to the vulnerable endpoint.
Monitoring Recommendations
- Monitor web server access logs for anomalous id values exceeding expected numeric length or containing non-numeric characters.
- Alert on Content Security Policy (CSP) violation reports originating from /confirmbooking.php.
- Track session cookie anomalies, including concurrent sessions from distinct geolocations, for accounts that recently accessed the booking confirmation page.
How to Mitigate CVE-2025-2377
Immediate Actions Required
- Restrict external exposure of the Janobe Vehicle Management System until a fix is applied; place the application behind an authenticated reverse proxy or VPN.
- Deploy WAF signatures that block script injection in query parameters on /confirmbooking.php.
- Enforce a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins.
Patch Information
No official vendor patch has been published for Janobe Vehicle Management System 1.0 at the time of CVE assignment. Organizations running this application should apply compensating controls, implement source-code fixes to encode the id parameter using HTML entity encoding before reflection, and validate that the parameter conforms to an expected numeric format. Monitor the SourceCodester repository and VulDB submission #515797 for updates.
Workarounds
- Add server-side input validation to reject non-numeric values for the id parameter in /confirmbooking.php.
- Apply HTML entity encoding using PHP's htmlspecialchars($id, ENT_QUOTES, 'UTF-8') before echoing the value into the page.
- Set the HttpOnly and Secure flags on session cookies to limit the impact of successful script execution.
- Enforce SameSite=Lax or SameSite=Strict cookie attributes to reduce cross-origin exploitation paths.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

