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 base score of 6.3 indicates medium severity, the real-world risk profile is elevated when examining contributing signals. The attack vector is network-accessible (AV:N) with low complexity (AC:L), meaning any remote authenticated user can exploit this without special conditions. The CVSS vector denotes proof-of-concept exploitation (E:P) and reasonable confidence in reliability (RC:R), indicating active demonstrable exploitation pathways. Critically, the vulnerability requires authentication (PR:L), which reduces the attack surface to legitimate users or those who have gained initial access; however, in many small business deployments of inventory systems, user account proliferation is common and security controls are loose. The impact scope is unchanged (S:U) but affects confidentiality, integrity, and availability equally (C:L/I:L/A:L), enabling data exfiltration, modification of customer records, and potential denial of service. The availability of a publicly disclosed proof-of-concept (referenced via GitHub) combined with the straightforward nature of SQL injection exploitation makes this a real operational priority. Organizations running version 1.0 should prioritize patching, particularly if exposed to untrusted networks or if user account hygiene is poor. |
| Exploit ScenarioDerived | An authenticated employee or contractor with access to the inventory system navigates to the customer search functionality and injects a malicious SQL payload into the 'searchtxt' POST parameter, such as searchtxt='; DROP TABLE customers; --. The unvalidated input is directly concatenated into the backend SQL query, causing the database to execute both the intended search query and the injected DROP TABLE command. A publicly available proof-of-concept (referenced on GitHub at https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/SQLi-ViewCustomers-searchtxt.md) demonstrates this attack chain, allowing an attacker to extract sensitive customer data, modify purchase records, or corrupt the database integrity without requiring administrative privileges. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 23, 2026
SourceCodester Sales and Inventory System 1.0 contains a SQL injection vulnerability in the /view_customers.php endpoint where the searchtxt parameter is insufficiently sanitized, allowing authenticated attackers to execute arbitrary SQL queries and manipulate database contents. The vulnerability requires valid credentials but can be exploited remotely over the network, and public exploit code is available. No patch is currently available for this vulnerability.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in SourceCodester Sales and Inventory System 1.0 within the /view_customers.php file, where the HTTP POST parameter 'searchtxt' is not properly sanitized, allowing authenticated attackers to execute arbitrary SQL queries remotely. This vulnerability (CWE-89) carries a CVSS 3.1 score of 6.3 with medium severity, requiring low privileges and user interaction absent. A publicly available proof-of-concept exploit exists and the vulnerability exhibits proof-of-concept evidence (E:P) with reasonable confidence (RC:R), making it a moderate-priority remediation target for organizations deploying this system.
RemediationAI
Upgrade SourceCodester Sales and Inventory System to the latest patched version released by the vendor (verify current versions at https://www.sourcecodester.com/). If immediate patching is not feasible, implement a web application firewall (WAF) with SQL injection detection rules to filter malicious POST requests to /view_customers.php, and restrict access to the inventory management interface via network-level controls such as VPN enforcement or IP allowlisting. Additionally, enforce principle of least privilege by auditing user accounts within the application and removing unnecessary inventory system access. As a compensating control, enable database query logging and monitor for suspicious SQL patterns in application logs. Parameterized queries or prepared statements must replace all string concatenation in POST request handlers once patching occurs.
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 improper input validation in a PHP-based web application handling HTTP POST requests. The affected component is the /view_customers.php file, which processes the 'searchtxt' parameter without adequate parameterized query safeguards or input filtering. This is a classic SQL injection vulnerability classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). The affected product, SourceCodester Sales and Inventory System (CPE: cpe:2.3:a:sourcecodester:sales_and_inventory_system:*:*:*:*:*:*:*:*), is a PHP-based inventory management application commonly used in small to medium-sized retail operations. The root cause is the direct concatenation of user-supplied input into SQL query strings without prepared statements or parameterized queries, a fundamental secure coding violation in PHP database interactions.
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 vulnerability was identified in SourceCodester Sales and Inventory System 1.0. Affected is an unknown function of the file /view_customers.php of the component HTTP POST Request Handler. Such manipulation of the argument searchtxt leads to sql injection. The attack can be executed remotely. The exploit is publicly available and might be used.
Executive ViewAI
Organizations using A vulnerability should be aware of moderate risk from CVE-2026-4570, a SQL injection vulnerability rated CVSS 6.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.
Related Vulnerabilities in SourceCodester Sales and Inventory System SQL Injection
View all 5More 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-14355
GHSA-prpf-w4c2-wf9p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB