CVE-2025-6840
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-06-29

Last updated on: 2026-04-29

Assigner: VulDB

Description
A vulnerability, which was classified as critical, was found in code-projects Product Inventory System 1.0. This affects an unknown part of the file /index.php of the component Login. The manipulation of the argument Username leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-06-29
Last Modified
2026-04-29
Generated
2026-05-07
AI Q&A
2025-06-29
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
fabian product_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-6840 is a critical SQL injection vulnerability in the Product Inventory System version 1.0. It occurs in the /index.php file within the Login component due to improper handling and inadequate validation of the 'username' parameter. This flaw allows attackers to inject malicious SQL code remotely without authentication, enabling unauthorized access to the database. The vulnerability can be exploited using various SQL injection techniques such as boolean-based blind, error-based, and time-based blind methods. [1, 2, 3]


How can this vulnerability impact me? :

Exploitation of this vulnerability can lead to unauthorized database access, data leakage, modification, or deletion of sensitive information. It can also result in full system compromise and potential service disruption. Since the attack requires no authentication and can be performed remotely, it poses a significant risk to system confidentiality, integrity, and availability. [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 'username' parameter in the /index.php file for SQL injection using techniques such as boolean-based blind, error-based, and time-based blind SQL injection. Example payloads to test include: - Boolean-based blind: username=admin' AND 2944=2944 AND 'TjwY'='TjwY - Error-based (MySQL β‰₯ 5.6): username=admin' AND GTID_SUBSET(CONCAT(0x71626a6b71,(SELECT (ELT(4192=4192,1))),0x716b786b71),4192) AND 'RKpz'='RKpz - Time-based blind (MySQL β‰₯ 5.0.12): username=admin' AND (SELECT 3106 FROM (SELECT(SLEEP(5)))fFTP) AND 'eeQh'='eeQh' Additionally, the sqlmap tool can be used to automate detection and exploitation of this vulnerability by targeting the username parameter in /index.php. [2]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include: - Implement prepared statements with parameter binding to separate SQL code from user input, preventing injection. - Apply strict input validation and filtering to ensure inputs conform to expected formats. - Minimize database user permissions by avoiding use of high-privilege accounts (e.g., root or admin) for routine operations. - Conduct regular security audits to detect and address vulnerabilities promptly. If possible, consider replacing the affected product with an alternative solution as no known countermeasures are currently available. [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