CVE-2025-9845 in Fruit Shop Management Systeminfo

Summary

by MITRE • 09/03/2025

A vulnerability has been found in code-projects Fruit Shop Management System 1.0. Affected by this vulnerability is an unknown functionality of the file products.php. Such manipulation of the argument product_code/gen_name/product_name/supplier leads to cross site scripting. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 09/09/2025

The vulnerability identified as CVE-2025-9845 affects the code-projects Fruit Shop Management System version 1.0, specifically targeting the products.php file. This represents a critical security flaw that exposes the application to cross-site scripting attacks through manipulation of product-related parameters. The affected functionality appears to process user input without adequate sanitization or validation, creating an exploitable vector for malicious actors to inject harmful scripts into the application's response. The vulnerability's remote exploitation capability means that attackers can leverage this flaw from external networks without requiring physical access to the system infrastructure.

The technical implementation of this vulnerability stems from insufficient input validation and output encoding within the products.php script. When users provide values for product_code, gen_name, product_name, or supplier parameters, the application fails to properly sanitize these inputs before incorporating them into dynamic web content. This lack of proper input filtering creates an environment where malicious scripts can be executed within the context of other users' browsers, potentially leading to session hijacking, credential theft, or unauthorized data manipulation. The vulnerability aligns with CWE-79 which specifically addresses cross-site scripting flaws in web applications, where inadequate input validation allows attackers to inject malicious code into web pages viewed by other users.

The operational impact of this vulnerability extends beyond simple script injection, as it can enable attackers to establish persistent access to the application's user base. Remote exploitation capabilities mean that threat actors can target the system from anywhere on the internet, making this vulnerability particularly dangerous for business-critical applications. The disclosure of the exploit to the public increases the likelihood of real-world attacks, as malicious actors can immediately leverage the known vulnerability without requiring additional reconnaissance or development time. This exposure could result in unauthorized access to customer data, manipulation of product information, or potential compromise of the entire application infrastructure.

Organizations utilizing this version of the Fruit Shop Management System should implement immediate mitigations to address the vulnerability. The primary recommendation involves implementing comprehensive input validation and output encoding mechanisms throughout the products.php file and similar application components. All user-supplied data should be sanitized using established security libraries and validated against strict whitelists of acceptable characters and formats. Additionally, implementing proper content security policies and using secure coding practices such as parameterized queries and context-aware output encoding can significantly reduce the risk of successful exploitation. The application should also be updated to a patched version if available, as this vulnerability represents a known flaw in the current codebase that requires immediate remediation to prevent potential security breaches.

Responsible

VulDB

Disclosure

09/03/2025

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00051

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!