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 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) indicates network-accessible, low-complexity exploitation requiring low privileges (authenticated user) with limited impact scope (confidentiality, integrity, and availability each at low level). The presence of a publicly available proof-of-concept on GitHub significantly elevates real-world exploitation risk, as tooling and techniques are immediately accessible to threat actors. The authenticated requirement (PR:L) provides a meaningful barrier compared to unauthenticated SQL injection, but organizations with permissive user provisioning or shared credentials face elevated risk. The combination of public POC availability, low attack complexity, and remote network accessibility makes this a practical exploitation target despite the authenticated prerequisite. This is a legitimate priority vulnerability, not a false-positive high-CVSS case, given active public weaponization. |
| Exploit ScenarioDerived | An authenticated user (or attacker with stolen credentials) navigates to the supplier view page and submits a POST request with a crafted SQL payload in the searchtxt parameter—for example, searchtxt='; DROP TABLE suppliers;--. The PHP application concatenates this directly into a SQL query without escaping, causing the injected SQL command to execute against the backend database. The attacker retrieves sensitive supplier data, modifies inventory records, or deletes business-critical information. A public GitHub POC (https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/SQLi-ViewSupplier-searchtxt.md) provides step-by-step exploitation techniques, enabling rapid weaponization by threat actors. |
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's view_supplier.php POST parameter handler allows authenticated attackers to execute arbitrary SQL queries through the searchtxt parameter. Public exploit code exists for this vulnerability, increasing the risk of active exploitation. The vulnerability affects PHP-based installations and currently lacks an available patch.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in SourceCodester Sales and Inventory System version 1.0 within the view_supplier.php file's POST parameter handler. The flaw allows authenticated attackers to inject malicious SQL commands through the 'searchtxt' parameter, potentially enabling unauthorized data access, modification, or deletion. A proof-of-concept exploit has been publicly released on GitHub, increasing exploitation risk, though the vulnerability requires valid login credentials (CVSS:3.1 base score 6.3 with low attack complexity).
RemediationAI
The primary remediation is to contact SourceCodester for security updates or upgrade to a patched version if available via https://www.sourcecodester.com/. As an immediate mitigation, implement parameterized queries (prepared statements) in the view_supplier.php POST parameter handler to eliminate SQL injection; sanitize all user input (searchtxt parameter) using whitelisting and escaping appropriate to the database backend. Restrict database account privileges to the minimum required for the application function, implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in the searchtxt parameter, and enforce strong authentication and access controls to reduce the likelihood of unauthorized authenticated access. Monitor application logs for suspicious SQL patterns and consider running the application in a database transaction isolation mode that limits data exposure.
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 (CWE-89) flaw in a PHP-based web application. The view_supplier.php component processes POST parameters without proper input validation or parameterized query usage, allowing attackers to manipulate the 'searchtxt' argument to alter SQL query logic. The affected technology stack involves PHP server-side processing with likely MySQL or similar relational database backend. According to CPE data (cpe:2.3:a:sourcecodester:sales_and_inventory_system), this is a web-based inventory management application. The root cause is insufficient input sanitization before SQL query construction, a well-documented and preventable class of vulnerability.
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 security flaw has been discovered in SourceCodester Sales and Inventory System 1.0. This affects an unknown part of the file view_supplier.php of the component POST Parameter Handler. The manipulation of the argument searchtxt results in sql injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks.
Executive ViewAI
Organizations using A security flaw should be aware of moderate risk from CVE-2026-4777, 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-15026
GHSA-9jvv-qw4v-hm39
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB