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-accessible attack vector (AV:N), low attack complexity (AC:L), and requirement for low privileges (PR:L). The CVSS vector indicates limited confidentiality, integrity, and availability impact (C:L/I:L/A:L), meaning an attacker can read/modify data or cause partial service disruption but cannot achieve complete system compromise. However, real-world risk is elevated by multiple exploitation signals: public proof-of-concept code is available (E:P), the attack is repeatable (RC:R), authentication is required but likely weak in legacy systems, and the product appears to be actively used in small business environments where patching cycles are slow. The requirement for authenticated access (PR:L) somewhat limits opportunistic exploitation but does not prevent attacks from insiders or attackers who have compromised low-privilege accounts. This presents a moderate-to-significant risk for affected organizations, particularly those running publicly exposed instances or with poor access controls. |
| Exploit ScenarioDerived | An authenticated user (or attacker with stolen credentials) submits a POST request to /view_product.php with a malicious SQL injection payload in the 'searchtxt' parameter, such as: searchtxt=' OR '1'='1' UNION SELECT table_name FROM information_schema.tables -- . The application concatenates this unsanitized input directly into a SELECT query, allowing the attacker to extract database schema information, customer data, or modify inventory records. A public GitHub PoC demonstrates this exploitation technique, making it accessible to attackers with basic SQL knowledge and requiring only network access and valid application credentials. |
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 authenticated remote attackers to manipulate the searchtxt parameter in /view_product.php, enabling unauthorized data access and modification. 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, specifically in the /view_product.php file's HTTP POST request handler where the 'searchtxt' parameter is improperly sanitized. An authenticated attacker can exploit this CWE-89 weakness to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or denial of service. Public proof-of-concept code is available on GitHub, and exploitation requires only low-complexity network access with valid credentials (CVSS 6.3), making this a moderate-risk vulnerability with active public exploit availability.
RemediationAI
Immediate remediation requires upgrading SourceCodester Sales and Inventory System to a patched version if available; consult https://www.sourcecodester.com/ for security updates and supported versions. If no patch is available, implement input validation by enforcing whitelist-based filtering on the 'searchtxt' parameter to reject SQL metacharacters, and refactor the /view_product.php POST handler to use prepared statements with parameterized queries instead of string concatenation. As a temporary mitigation, restrict network access to the application using a Web Application Firewall (WAF) with SQL injection detection rules, enforce strict authentication controls, and monitor database logs for suspicious query patterns. Additionally, run a security audit of other user-input parameters in the application to identify similar SQL injection vulnerabilities.
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 rooted in improper input validation of the 'searchtxt' POST parameter in a PHP-based web application (Sales and Inventory System). The affected component (HTTP POST Request Handler) fails to implement prepared statements or proper parameterized queries when constructing SQL commands, allowing attackers to inject malicious SQL syntax directly into database queries. This is a classic instance of CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), which occurs when user-supplied input is concatenated directly into SQL strings without escaping or sanitization. The PHP application likely uses unsecured string concatenation or legacy MySQL APIs without parameterized query support, as indicated by the product's legacy status and public PoC availability on GitHub.
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. Affected by this issue is some unknown functionality of the file /view_product.php of the component HTTP POST Request Handler. Executing a manipulation of the argument searchtxt can lead to sql injection. The attack may be performed from remote. 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-4572, 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-14359
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB