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 | The CVSS v3.1 score of 6.3 reflects a medium severity with network accessibility (AV:N) and low attack complexity (AC:L), requiring only low privileges (PR:L) and no user interaction (UI:N). The CVSS vector indicates confidentiality, integrity, and availability impacts at low severity per component. The Exploit maturity rating (E:P) and reproducibility rating (RC:R) indicate publicly available working exploits with confirmed reproducibility. The presence of a public GitHub proof-of-concept significantly elevates real-world risk despite the medium CVSS score, as the exploit is weaponized and trivial to execute. This is not a high-CVSS-but-low-risk scenario; rather, it is a moderate-severity flaw with high exploitability and active public disclosure, making it a genuine priority for organizations running affected versions. The requirement for low privileges reduces the threat surface but does not eliminate it in environments where multiple users have application access. |
| Exploit ScenarioDerived | An authenticated attacker with low-privilege access to the Sales and Inventory System crafts a malicious HTTP GET request to update_purchase.php containing a SQL injection payload in the 'sid' parameter, such as 'sid=1 OR 1=1--' or 'sid=1; DROP TABLE purchases;--'. Because the parameter is not sanitized before being inserted into the SQL query, the attacker's injected SQL commands execute with the database privileges of the application, allowing them to extract sensitive purchase records, modify transaction data, or disrupt system availability. The public proof-of-concept on GitHub provides ready-made payloads, making exploitation trivial for any attacker with network access and valid application credentials. |
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 manipulate the sid parameter in update_purchase.php, enabling unauthorized database queries and potential data exfiltration. Public exploit code exists for this vulnerability, and no patch is currently available.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in SourceCodester Sales and Inventory System version 1.0 within the update_purchase.php file, specifically in the HTTP GET parameter handler where the 'sid' argument is not properly sanitized. Remote attackers with low privileges can exploit this flaw to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or deletion. A proof-of-concept exploit has been publicly disclosed on GitHub, and exploitation is considered probable based on CVSS metric indicators.
RemediationAI
Immediately upgrade SourceCodester Sales and Inventory System to a patched version beyond 1.0 if available from https://www.sourcecodester.com/. If a patched version is unavailable or deployment cannot be immediately updated, implement the following interim controls: enforce parameterized prepared statements or stored procedures for all database queries, validate and sanitize all HTTP GET parameters using whitelist-based input validation, apply PHP input filtering functions such as filter_var() or use an ORM framework that handles SQL escaping automatically, and restrict network access to the application to trusted IP ranges only. Additionally, implement Web Application Firewall (WAF) rules to detect and block SQL injection attempts on the update_purchase.php endpoint, and conduct a thorough database audit to detect any unauthorized access or data modification that may have occurred.
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 stems from CWE-89 (SQL Injection), a classic input validation failure where user-supplied data from HTTP GET parameters is directly concatenated into SQL queries without proper escaping or parameterized query preparation. The affected component is written in PHP and handles the 'sid' parameter in the update_purchase.php file. The CPE identifier cpe:2.3:a:sourcecodester:sales_and_inventory_system indicates this is a PHP-based web application framework. The root cause is the absence of input validation and the use of unsafe string concatenation in SQL query construction, allowing attackers to break out of the intended query context and inject arbitrary SQL commands.
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 flaw has been found in SourceCodester Sales and Inventory System 1.0. The affected element is an unknown function of the file update_purchase.php of the component HTTP GET Parameter Handler. Executing a manipulation of the argument sid can lead to sql injection. The attack may be performed from remote. The exploit has been published and may be used.
Executive ViewAI
Organizations using A flaw should be aware of moderate risk from CVE-2026-4781, 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-15033
GHSA-923r-23pf-6337
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB