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 6.3 score reflects a Medium-severity vulnerability with Network-based attack vector (AV:N), Low complexity (AC:L), and requirement for Low privileges (PR:L), indicating any authenticated user can trigger the exploit. The CVSS vector shows Proof of Concept availability (E:P) and assigns a Reasonable confidence level (RC:R). While the impact is bounded to Confidentiality, Integrity, and Availability at the user level (S:U), the real-world risk is elevated by the public availability of working exploits on GitHub and the commonality of SQL injection attacks in automated scanning tools. The vulnerability requires authentication (PR:L) which reduces opportunistic exploitation but does not eliminate risk in environments with weak access controls. This represents a legitimate security priority for organizations using this system, particularly given the ubiquity of SQL injection in CVSS base scores relative to actual exploitation trends—however, the authentication requirement significantly limits the attack surface compared to unauthenticated SQL injection vulnerabilities. |
| Exploit ScenarioDerived | An authenticated user with access to the Sales and Inventory System's payment viewing interface crafts a malicious POST request to /view_payments.php with a SQL injection payload embedded in the searchtxt parameter, such as searchtxt=1' UNION SELECT username,password FROM users--. Because the application fails to parameterize this input, the injected SQL executes against the backend database, allowing the attacker to extract sensitive data including user credentials or financial records. A public proof-of-concept is available on GitHub (https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/SQLi-ViewPayments-searchtxt.md), making this vulnerability easily reproducible by attackers with basic SQL knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 23, 2026
SQL injection in SourceCodester Sales and Inventory System 1.0 allows remote authenticated attackers to manipulate the searchtxt parameter in /view_payments.php, enabling unauthorized data access and modification. Public exploit code exists for this vulnerability, and no patch is currently available. The attack requires valid credentials but can be executed with low complexity over the network.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in SourceCodester Sales and Inventory System 1.0 within the /view_payments.php file, specifically in the HTTP POST Request Handler's searchtxt parameter. An authenticated attacker can remotely exploit this flaw to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or deletion. A public proof-of-concept exploit is available on GitHub, and the vulnerability has CVSS 6.3 severity with Proof of Concept (E:P) evidence of exploitation.
RemediationAI
Apply a security patch from SourceCodester immediately if available; check the official SourceCodester website at https://www.sourcecodester.com/ and VulDB advisories for patched versions. If patching is not immediately possible, implement the following compensating controls: (1) enforce strong input validation and parameterized prepared statements in the /view_payments.php file by replacing all dynamic SQL with prepared statements using bound parameters, (2) restrict access to the /view_payments.php endpoint to trusted internal networks only via firewall or reverse proxy rules, (3) implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in POST parameters, particularly the searchtxt field, and (4) enable SQL query logging and monitoring to detect suspicious database activity. For defense-in-depth, apply principle of least privilege to database user accounts so the application database user cannot execute administrative commands.
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 and parameterization in PHP code handling database queries (CWE-89: Improper Neutralization of Special Elements used in an SQL Command). SourceCodester Sales and Inventory System versions at or before 1.0 (identified via CPE cpe:2.3:a:sourcecodester:sales_and_inventory_system:*:*:*:*:*:*:*:*) fail to sanitize the searchtxt POST parameter before incorporating it into SQL statements. The affected component is the HTTP POST Request Handler in /view_payments.php, which processes payment search requests without adequate prepared statements or input escaping. This is a classic SQL injection pattern where user-supplied input is directly concatenated into dynamic SQL queries executed against the backend database.
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. Affected by this vulnerability is an unknown functionality of the file /view_payments.php of the component HTTP POST Request Handler. Performing a manipulation of the argument searchtxt results in sql injection. The attack is possible to be carried out 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-4571, 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-14356
GHSA-38pm-3998-p6q4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB