Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | The CVSS v3.1 score of 7.3 (High) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L indicates this is a network-exploitable vulnerability requiring no privileges or user interaction, making it highly accessible. The Low complexity and complete lack of authentication requirements significantly elevate real-world risk. The public disclosure of exploit code and confirmation that the vulnerability 'may be used' suggests active exploitation is probable. For SSVC decision framework: exploitation status is 'Proof-of-Concept Available,' technical impact is 'Partial,' and automatable exploitation is 'yes' (SQL injection is trivial to automate). This creates a 'remediate' priority designation. While CVSS only assigns 'Partial' impact to confidentiality, integrity, and availability (not 'Complete'), SQL injection in inventory systems can enable complete data exfiltration, modification, or deletion depending on database permissions—real-world impact may exceed CVSS assessment. Organizations using this system should treat this as critical. |
| Exploit ScenarioDerived | An attacker discovers a Campcodes Sales and Inventory System 1.0 deployment and crafts a simple HTTP POST/GET request to /pages/cat_add.php with a malicious SQL injection payload in the Category parameter, such as: Category=Test' OR '1'='1' UNION SELECT user(), database(), version()--. Due to the absence of input validation and the use of direct SQL concatenation, the injected SQL executes in the context of the application's database user. The attacker can then: (1) enumerate database structure and credentials, (2) extract sensitive inventory, customer, or financial data, (3) modify or delete product/pricing information, causing business disruption, or (4) potentially escalate to remote code execution if the database user has FILE privileges. Because PR:N (no authentication required) and AC:L (low attack complexity), the attacker requires only network access and can automate this exploitation at scale. A proof-of-concept exploit is publicly available, enabling non-sophisticated actors to weaponize this vulnerability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
CVE-2025-6313 is a critical SQL injection vulnerability in Campcodes Sales and Inventory System version 1.0, affecting the /pages/cat_add.php endpoint where the 'Category' parameter is improperly sanitized. An unauthenticated remote attacker can exploit this to execute arbitrary SQL queries, potentially compromising data confidentiality, integrity, and availability. The vulnerability has been publicly disclosed with exploit code available and may be actively exploited in the wild.
RemediationAI
Immediate Mitigation: Implement input validation and parameterized queries in /pages/cat_add.php. Replace all SQL concatenation with prepared statements using parameterized placeholders (e.g., MySQLi prepared statements or PDO prepared queries). Code Fix Example: Change from: $query = "SELECT * FROM categories WHERE name = '" . $_POST['Category'] . "'"; To: $stmt = $pdo->prepare('SELECT * FROM categories WHERE name = ?'); $stmt->execute([$_POST['Category']]) Input Validation: Implement strict input validation: whitelist allowed characters for Category field, enforce length limits, and reject unexpected input patterns before database processing. Vendor Patch: Monitor Campcodes official channels for version 1.1 or later security patches. No patch version is currently documented; contact vendor for emergency security update. Web Application Firewall: Deploy WAF rules to detect and block SQL injection patterns in the Category parameter (detect common SQL keywords: UNION, SELECT, DROP, etc.). Database Hardening: Restrict database user permissions used by the application to minimum required privileges; disable stored procedure execution if not needed. Access Control: Restrict access to /pages/cat_add.php via IP whitelisting or authentication until patch is applied.
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
This vulnerability represents a classic SQL injection flaw (CWE-74: Improper Neutralization of Special Elements used in an SQL Command) in a PHP-based inventory management application. The /pages/cat_add.php file fails to properly validate or parameterize user input from the 'Category' parameter before incorporating it into SQL queries. The underlying issue stems from direct string concatenation of user-supplied input into SQL statements rather than using prepared statements or parameterized queries. CPE specification: cpe:2.3:a:campcodes:sales_and_inventory_system:1.0:*:*:*:*:*:*:* — this affects the Campcodes Sales and Inventory System product line at version 1.0 and potentially earlier/later versions if similarly coded.
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:N/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 found in Campcodes Sales and Inventory System 1.0 and classified as critical. This issue affects some unknown processing of the file /pages/cat_add.php. The manipulation of the argument Category leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
A publicly disclosed SQL injection vulnerability in Campcodes Sales and Inventory System 1.0 allows remote attackers to manipulate the category input field, potentially enabling unauthorized database access, data exfiltration, or system compromise. Organizations using this system face immediate risk of data breach and operational disruption, particularly if the system processes sensitive inventory or financial data.
Deploy WAF rules blocking SQL metacharacters (single quotes, semicolons, SQL keywords) in the Category parameter; implement network segmentation to restrict database access from the application server; disable the /pages/cat_add.php functionality if unused; enforce principle of least privilege on database accounts used by the application; enable detailed logging and monitoring of database queries from this application; consider deploying an application-level input validation bypass through reverse proxy configuration.
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-2025-18728
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB