Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3754: SQL Injection in SourceCodester Sales and Inventory System

0
Medium
VulnerabilityCVE-2026-3754cvecve-2026-3754
Published: Sun Mar 08 2026 (03/08/2026, 17:32:09 UTC)
Source: CVE Database V5
Vendor/Project: SourceCodester
Product: Sales and Inventory System

Description

A vulnerability was found in SourceCodester Sales and Inventory System 1.0. This affects an unknown function of the file /add_stock.php. Performing a manipulation of the argument cost results in sql injection. The attack can be initiated remotely. The exploit has been made public and could be used.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/16/2026, 09:10:45 UTC

Technical Analysis

CVE-2026-3754 identifies a SQL injection vulnerability in SourceCodester Sales and Inventory System version 1.0, located in the /add_stock.php script. The vulnerability stems from insufficient input validation on the 'cost' parameter, which is directly incorporated into SQL queries without proper sanitization or parameterization. This flaw allows an unauthenticated remote attacker to inject malicious SQL code by manipulating the 'cost' argument, potentially leading to unauthorized database queries. The vulnerability does not require user interaction and can be exploited remotely, increasing its risk profile. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:L, meaning limited privileges), no user interaction (UI:N), and low impact on confidentiality, integrity, and availability (VC:L, VI:L, VA:L). The vulnerability affects only version 1.0 of the product, and no official patches or fixes have been published yet. While no known exploits are currently active in the wild, exploit code has been made publicly available, which could facilitate attacks by less skilled adversaries. The vulnerability could allow attackers to extract sensitive data, modify or delete records, or potentially escalate privileges within the database context. The lack of scope change (S:N) suggests the impact is confined to the vulnerable component without affecting other system components. The vulnerability highlights the importance of secure coding practices, particularly input validation and use of prepared statements or parameterized queries in web applications handling inventory and sales data.

Potential Impact

The SQL injection vulnerability in SourceCodester Sales and Inventory System 1.0 can have significant impacts on organizations relying on this software for managing sales and inventory data. Successful exploitation could lead to unauthorized disclosure of sensitive business information, including pricing, stock levels, and customer data, compromising confidentiality. Attackers could also alter or delete critical inventory records, affecting data integrity and potentially disrupting business operations. In some cases, attackers might escalate privileges within the database or execute administrative commands, further compromising system availability and control. The remote and unauthenticated nature of the vulnerability increases the attack surface, allowing attackers to exploit it without prior access or user involvement. Although the CVSS score is medium, the actual impact depends on the deployment context, database sensitivity, and network exposure. Organizations with internet-facing instances of this software are particularly vulnerable. The absence of official patches means that organizations must rely on mitigation strategies to reduce risk. If exploited in a targeted attack, this vulnerability could facilitate fraud, inventory manipulation, or data theft, potentially leading to financial losses and reputational damage.

Mitigation Recommendations

To mitigate CVE-2026-3754, organizations should immediately implement input validation and sanitization for the 'cost' parameter in the /add_stock.php script. Employing parameterized queries or prepared statements is critical to prevent SQL injection attacks. If source code modification is possible, refactor the vulnerable code to use secure database access methods. In the absence of official patches, consider deploying web application firewalls (WAFs) with custom rules to detect and block malicious SQL injection payloads targeting the 'cost' parameter. Restrict network access to the affected application by limiting exposure to trusted IP addresses and enforcing strong network segmentation. Monitor application logs and database queries for unusual activity indicative of exploitation attempts. Conduct regular security assessments and penetration testing focused on injection vulnerabilities. Educate developers on secure coding practices to prevent similar issues in future releases. If feasible, isolate the affected system and plan for an upgrade or replacement with a more secure inventory management solution. Maintain backups of critical data to enable recovery in case of data tampering or loss.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-03-07T20:29:57.466Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69adb3e72904315ca3cfbc16

Added to database: 3/8/2026, 5:37:43 PM

Last enriched: 3/16/2026, 9:10:45 AM

Last updated: 4/28/2026, 3:45:55 AM

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses