CVE-2025-10031
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-06

Last updated on: 2026-04-29

Assigner: VulDB

Description
A security vulnerability has been detected in Campcodes Grocery Sales and Inventory System 1.0. Impacted is an unknown function of the file /ajax.php?action=delete_sales. The manipulation of the argument ID leads to sql injection. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-06
Last Modified
2026-04-29
Generated
2026-05-07
AI Q&A
2025-09-06
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
campcodes grocery_sales_and_inventory_system 1.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2025-10031 is a critical SQL injection vulnerability in Campcodes Grocery Sales and Inventory System version 1.0. It occurs in the /ajax.php?action=delete_sales endpoint due to improper validation and sanitization of the 'id' parameter. This flaw allows attackers to inject malicious SQL code, enabling unauthorized access to the database, modification or deletion of data, and exposure of sensitive information. The vulnerability can be exploited remotely without authentication. [1, 2, 3]


How can this vulnerability impact me? :

Exploitation of this vulnerability can lead to unauthorized database access, data leakage, data tampering, deletion of records, full system control, and potential service disruption. Since no authentication is required, attackers can remotely exploit the flaw to compromise system confidentiality, integrity, and availability, posing a serious threat to system security and business continuity. [1, 2, 3]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by testing the /ajax.php?action=delete_sales endpoint for SQL injection via the 'id' parameter. Using tools like sqlmap with a command such as `sqlmap -u "http://target/ajax.php?action=delete_sales" --data="id=1" --risk=3 --level=5` can help identify the injection point. Additionally, manual testing with payloads like `id=(SELECT (CASE WHEN (2741=2741) THEN 1 ELSE (SELECT 9394 UNION SELECT 7184) END))` can confirm boolean-based blind SQL injection. Monitoring network traffic for suspicious POST requests to this endpoint with unusual 'id' parameter values can also aid detection. [2]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include implementing prepared statements with parameter binding to prevent SQL injection, enforcing strict input validation and filtering on the 'id' parameter to ensure it conforms to expected formats, and minimizing database user permissions by avoiding high-privilege accounts for routine operations. Conducting regular security audits to detect and fix vulnerabilities promptly is also recommended. If possible, consider replacing the affected product with a secure alternative. [2, 3]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart