Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | While the CVSS 3.1 score of 7.3 indicates high severity, the contextual risk signals suggest critical priority: (1) Attack Vector is Network with Low Complexity and No Privileges Required—maximizing exploitability; (2) Public disclosure with confirmed POC availability significantly increases real-world exploitation probability; (3) The vulnerability is not patched (no patch version information available), leaving all installations of v1.0 vulnerable; (4) SQL injection typically enables data exfiltration, modification, and deletion—impacting Confidentiality, Integrity, and Availability equally (C:L/I:L/A:L reflects conservative CVSS scoring but actual impact may be higher); (5) Inventory Management Systems often contain sensitive business data (stock levels, pricing, customer information), making exploitation particularly damaging. This is a real, immediate priority—not a false alarm from high CVSS alone. |
| Exploit ScenarioDerived | An attacker discovers the vulnerable /changeUsername.php endpoint and crafts a malicious HTTP POST request with a SQL injection payload in the user_id parameter, such as: POST /changeUsername.php with user_id=1' OR '1'='1' UNION SELECT password FROM users-- or user_id=1; DROP TABLE users;--. Since the parameter is not sanitized, the injected SQL executes in the database context. The attacker can: (1) extract sensitive data (usernames, passwords, inventory data) via UNION-based injection; (2) modify user credentials or inventory records; (3) escalate privileges by updating user roles; or (4) delete critical tables to cause denial of service. Given the low attack complexity (standard HTTP requests) and no authentication requirement, exploitation can be automated at scale. Public POC availability means attackers can use ready-made exploit code within hours of CVE publication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
CVE-2025-6474 is a critical SQL injection vulnerability in code-projects Inventory Management System version 1.0 affecting the /changeUsername.php file, specifically the user_id parameter. An unauthenticated remote attacker can exploit this vulnerability to execute arbitrary SQL commands, potentially compromising data confidentiality, integrity, and availability. The vulnerability has been publicly disclosed with proof-of-concept availability, making active exploitation likely.
RemediationAI
patch: Monitor code-projects GitHub or official website for security updates and apply immediately upon availability workaround: Implement Web Application Firewall (WAF) rules to block SQL injection patterns in user_id parameter (detect quotes, SQL keywords like UNION, OR, etc.); priority: Medium-term mitigation detection: Set up alerts for failed SQL queries or unusual database access patterns
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability is classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - 'Injection'), which is a parent category for SQL injection flaws. The root cause stems from inadequate input validation and sanitization of the user_id parameter in /changeUsername.php before it is used in SQL queries. The application fails to employ parameterized queries, prepared statements, or proper escaping mechanisms, allowing attackers to inject malicious SQL syntax. The affected product is code-projects Inventory Management System 1.0, a PHP-based web application. The vulnerability permits database manipulation through HTTP requests to the vulnerable endpoint without requiring authentication or user interaction.
Know when Inventory Management System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability has been found in code-projects Inventory Management System 1.0 and classified as critical. This vulnerability affects unknown code of the file /changeUsername.php. The manipulation of the argument user_id leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
An unauthenticated SQL injection vulnerability in the Inventory Management System 1.0 allows attackers to remotely access, modify, or exfiltrate sensitive database records through the /changeUsername.php endpoint. With public exploit code available and no patch released, this poses an immediate risk to data integrity and confidentiality across all systems using this application.
Implement WAF rules to block SQL metacharacters (single quotes, semicolons, comment operators) in the user_id parameter; restrict network access to /changeUsername.php via firewall rules or IP whitelisting; disable the username change functionality if not business-critical; enforce strong database account permissions and enable detailed audit logging on all database write operations; implement database activity monitoring (DAM) to detect suspicious queries; require multi-factor authentication for inventory system access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in Inventory Management System
View allA vulnerability, which was classified as critical, was found in SourceCodester Inventory Management System 1.0. Rated cr
A vulnerability classified as critical was found in SourceCodester Inventory Management System 1.0. Rated critical sever
A vulnerability, which was classified as critical, has been found in SourceCodester Inventory Management System 1.0.php.
A vulnerability was found in SourceCodester Inventory Management System 1.0 and classified as critical.php. Rated critic
A vulnerability has been found in SourceCodester Inventory Management System 1.0 and classified as critical. Rated criti
Sourcecodester Free and Open Source inventory management system v1.0 is vulnerable to Incorrect Access Control. Rated hi
A vulnerability was found in SourceCodester Free and Open Source Inventory Management System 1.0. Rated high severity (C
A vulnerability, which was classified as critical, was found in SourceCodester Inventory Management System 1.0. Rated hi
A vulnerability classified as critical has been found in SourceCodester Inventory Management System 1.0. Rated critical
A vulnerability has been found in SourceCodester Inventory Management System 1.0 and classified as critical. Rated criti
A vulnerability, which was classified as critical, was found in SourceCodester Inventory Management System 1.0. Rated cr
A vulnerability was found in SourceCodester Inventory Management System 1.0 and classified as critical.php. Rated critic
EUVD-2025-18844
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB