Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | While the CVSS 3.1 score of 6.3 (Medium) indicates moderate severity, multiple risk signals elevate practical concern. The CVSS vector shows this requires low attack complexity (AC:L), network accessibility (AV:N), and authentication (PR:L), making it exploitable by any authenticated user with minimal effort. The EPSS score indicator (E:P) reflects publicly available proof-of-concept code, which significantly increases real-world exploitation likelihood compared to theoretical vulnerabilities. The absence of KEV/CISA coordination data and unknown patch status mean this vulnerability may remain unpatched in production systems. The combination of public POC availability, low attack complexity, and authenticated (but not unauthenticated) access requirement places this in the 'actively exploitable by motivated threat actors' category rather than a low-priority finding. Organizations running Sales and Inventory System 1.0 should treat this as a priority remediation target, particularly if the system handles sensitive transactional or inventory data. |
| Exploit ScenarioDerived | An authenticated user (e.g., employee with inventory management access) crafts a malicious HTTP GET request to update_category.php with a specially formatted 'sid' parameter containing SQL injection payloads such as 'sid=1; DROP TABLE categories;--'. Since the application does not sanitize this input before constructing the SQL query, the injected SQL executes with database privileges, allowing the attacker to exfiltrate sensitive inventory or customer data, modify pricing or product information, or destroy critical database tables. The attack requires only basic HTTP knowledge and can be executed using standard web browsers or command-line tools, and a public proof-of-concept is available on GitHub (https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/SQLi-UpdateCategory-sid.md) eliminating the need for sophisticated exploit development. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 24, 2026
SQL injection in SourceCodester Sales and Inventory System 1.0 allows authenticated remote attackers to execute arbitrary SQL queries via the sid parameter in update_category.php. Public exploit code exists for this vulnerability, and no patch is currently available. Attackers with valid credentials can leverage this weakness to compromise database integrity and extract sensitive information.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in SourceCodester Sales and Inventory System version 1.0, specifically in the update_category.php file's HTTP GET parameter handler where the 'sid' argument is not properly sanitized. Authenticated remote attackers can exploit this vulnerability to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or deletion. A public proof-of-concept exploit is available and the vulnerability has been actively documented in security research repositories, increasing the likelihood of real-world exploitation.
RemediationAI
The primary remediation is to upgrade SourceCodester Sales and Inventory System to a patched version when available from the vendor at https://www.sourcecodester.com/. Until a vendor patch is released, implement the following compensating controls: apply input validation and whitelist acceptable values for the 'sid' parameter, implement prepared statements or parameterized queries throughout the application codebase, enforce principle of least privilege for database credentials used by the PHP application, and restrict HTTP access to update_category.php to trusted IP ranges only. Web application firewalls (WAF) can be configured to detect and block SQL injection patterns in GET parameters as a temporary layer of defense. Database activity monitoring should be enabled to detect anomalous query patterns that may indicate successful exploitation.
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
The vulnerability is a classic SQL injection flaw (CWE-89) affecting a PHP-based web application framework. SourceCodester Sales and Inventory System processes user-supplied input through HTTP GET parameters without proper input validation or parameterized query mechanisms. The update_category.php component specifically fails to implement prepared statements or parameterized queries when constructing SQL commands from the 'sid' parameter, allowing attackers to inject malicious SQL syntax. The affected product is identified via CPE as cpe:2.3:a:sourcecodester:sales_and_inventory_system with no version restrictions explicitly listed, indicating vulnerability across multiple or all versions of the system. This is a server-side PHP vulnerability that can be exploited without additional client-side complexity.
Know when Sales And Inventory 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:L/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 weakness has been identified in SourceCodester Sales and Inventory System 1.0. This vulnerability affects unknown code of the file update_category.php of the component HTTP GET Parameter Handler. This manipulation of the argument sid causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.
Executive ViewAI
Organizations using A weakness should be aware of moderate risk from CVE-2026-4778, a SQL injection vulnerability rated CVSS 5.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
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 Sales And Inventory System
View allSQL injection vulnerability in SourceCodester Sales and Inventory System v 1.0 allows remote attackers to execute arbitr
A vulnerability was found in Campcodes Sales and Inventory System 1.0 and classified as critical. Rated medium severity
A vulnerability was found in Campcodes Sales and Inventory System 1.0 and classified as critical.php. Rated medium sever
A vulnerability has been found in Campcodes Sales and Inventory System 1.0 and classified as critical. Rated medium seve
Reflected cross-site scripting (XSS) in SourceCodester Sales and Inventory System 1.0 allows remote attackers to inject
SQL injection in itsourcecode Sales and Inventory System 1.0 exposes the login endpoint to unauthenticated remote exploi
A vulnerability, which was classified as critical, was found in Campcodes Sales and Inventory System 1.0. Rated medium s
CVE-2025-7538 is a critical unrestricted file upload vulnerability in Campcodes Sales and Inventory System version 1.0,
SQL injection in Campcodes Sales and Inventory System 1.0 allows remote attackers to execute arbitrary SQL commands via
CVE-2025-6311 is a critical SQL injection vulnerability in Campcodes Sales and Inventory System version 1.0 affecting th
A security vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
SQL injection in Campcodes Sales and Inventory System 1.0 allows remote unauthenticated attackers to inject malicious SQ
EUVD-2026-15027
GHSA-fmg2-6qx8-qwc3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB