CVE-2025-10794
BaseFortify
Publication date: 2025-09-22
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| phpgurukul | car_rental_project | 3.0 |
Helpful Resources
Exploitability
| 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. |
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a Cross-Site Scripting (XSS) flaw in the PHPGurukul Car Rental Project 3.0, specifically in the /carrental/search.php file. It occurs because the 'autofocus' parameter is not properly sanitized or encoded before being included in the HTML response. This allows an attacker to inject malicious JavaScript code that executes in the victim's browser, potentially affecting both unauthenticated and authenticated users. [1]
How can this vulnerability impact me? :
Exploitation of this vulnerability can lead to session hijacking, cookie theft, webpage defacement, phishing attacks, or arbitrary script execution. This means attackers can steal sensitive information, impersonate users, or manipulate the website's content, which can compromise user security and trust. [1]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by testing the /carrental/search.php endpoint for improper sanitization of the autofocus parameter. A common method is to send a POST request with a payload such as `<a autofocus onfocus=alert(1) href></a>` embedded in the searchdata parameter and observe if the script executes. For example, you can use curl to test this: `curl -X POST -d "searchdata=<a autofocus onfocus=alert(1) href></a>" http://target-site/carrental/search.php` and check if the alert is triggered or if the response contains unencoded script tags. [1]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include implementing proper output encoding by converting special characters (e.g., `<` to `<`, `>` to `>`, `"` to `"`) before rendering user input in HTML. Additionally, enforce a strict Content Security Policy (CSP) header to limit executable script sources, apply strict input validation using allowlists to restrict input formats and disallow special characters, and utilize secure coding frameworks that provide built-in XSS protection mechanisms. [1]