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 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L) indicates high exploitability: network-accessible, low attack complexity, no privileges required, and no user interaction necessary. The public exploit disclosure combined with unauthenticated access vector significantly elevates real-world risk despite the 'Low' impact ratings across confidentiality, integrity, and availability. The vulnerability is automatable and requires minimal sophistication; however, impact is rated as 'Low' across all CIA triad dimensions, suggesting the SQL injection may be constrained (e.g., limited to specific fields or read-only contexts). Cross-referencing these signals: high exploitability + public POC + unauthenticated access = immediate priority, though the constrained impact suggests this is not a full database compromise scenario. Organizations running v1.0 should prioritize patching but may defer non-critical system updates if isolation controls exist. |
| Exploit ScenarioDerived | An attacker discovers the publicly disclosed exploit details for CVE-2025-6311 and crafts a malicious HTTP request to the vulnerable endpoint: GET /pages/account_add.php?id=1' OR '1'='1&amount=100. The unauthenticated nature of the endpoint allows the attacker to directly send this request without credentials. The unvalidated parameters are concatenated into a SQL query such as SELECT * FROM accounts WHERE id='1' OR '1'='1' AND amount=100, causing the query to return all accounts. In a more sophisticated attack, the attacker uses UNION-based or time-based blind SQL injection to extract sensitive data (customer information, financial records) or modify account balances. The public POC disclosure means automated scanning tools and script-kiddie toolkits likely already incorporate this exploit, increasing likelihood of opportunistic exploitation against unpatched systems. Organizations running this system publicly on the internet without WAF protection are at immediate risk. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
CVE-2025-6311 is a critical SQL injection vulnerability in Campcodes Sales and Inventory System version 1.0 affecting the /pages/account_add.php endpoint. Unauthenticated remote attackers can manipulate the 'id' or 'amount' parameters to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or deletion. The vulnerability has public exploit disclosure and demonstrates active exploitation risk with a CVSS score of 7.3 indicating medium-to-high severity.
RemediationAI
- priority: CRITICAL; action: Upgrade Campcodes Sales and Inventory System to a patched version (version >1.0 if available, or evaluate alternative products if no patch released); details: Contact Campcodes vendor for security update availability. If patch unavailable, implement Web Application Firewall (WAF) rules to block SQL injection patterns in id/amount parameters.
- priority: HIGH; action: Implement prepared statements/parameterized queries; details: Modify /pages/account_add.php to use prepared statements with bound parameters instead of string concatenation for all SQL queries.
- priority: HIGH; action: Input validation and sanitization; details: Implement strict whitelist validation for 'id' parameter (numeric validation) and 'amount' parameter (decimal/numeric validation). Reject any input containing SQL metacharacters (', ", ;, --, /*, etc.).
- priority: MEDIUM; action: Authentication enforcement; details: Require authentication before accessing /pages/account_add.php endpoint; implement role-based access control to restrict account modifications.
- priority: MEDIUM; action: Deploy Web Application Firewall (WAF); details: Configure WAF with SQL injection detection rules (ModSecurity, AWS WAF, Cloudflare) to block malicious payloads targeting the vulnerable endpoint.
- priority: LOW; action: Database permissions hardening; details: Apply principle of least privilege to database user accounts; restrict write/delete operations to minimum necessary permissions to limit damage from successful SQL injection.
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 the account_add.php script, classified under CWE-74 (Improper Neutralization of Special Elements in Output), which encompasses SQL injection flaws. The root cause is insufficient parameterization or sanitization of user-supplied input (id/amount parameters) before incorporation into SQL queries. The affected product is Campcodes Sales and Inventory System v1.0, a web-based inventory management application. The vulnerability allows attackers to bypass query intent through SQL metacharacter injection, enabling direct database manipulation through HTTP requests to an unauthenticated endpoint.
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, which was classified as critical, was found in Campcodes Sales and Inventory System 1.0. This affects an unknown part of the file /pages/account_add.php. The manipulation of the argument id/amount leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
A SQL injection vulnerability exists in Campcodes Sales and Inventory System 1.0 that allows remote attackers to manipulate database queries through the account_add.php file. This poses an immediate risk to organizations using this system, as attackers could potentially access, modify, or delete sensitive financial and inventory data without authentication. With public exploits already available and no vendor patch released, this represents an active threat requiring urgent mitigation.
Implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in the id and amount parameters; restrict network access to /pages/account_add.php to authorized users only via IP whitelisting; disable the account_add.php feature if not critical to operations; apply strict input validation and use parameterized queries at the application layer; enable database activity monitoring and alerting; isolate the affected system from production networks if possible; enforce principle of least privilege for database accounts used by this application.
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
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
SQL injection in Campcodes Sales and Inventory System 1.0 allows remote unauthenticated attackers to manipulate the 'cid
EUVD-2025-18725
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB