CVE-2026-4825

SourceCodester Sales and Inventory System HTTP GET Parameter update_sales.php sql injection

Published Mar 25, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was found in SourceCodester Sales and Inventory System 1.0. This affects an unknown part of the file /update_sales.php of the component HTTP GET Parameter Handler. The manipulation of the argument sid results in sql injection. The attack may be launched remotely. The exploit has been made public and could be used.

Analysis

AI-generated

Technical impact

The vulnerability in SourceCodester Sales and Inventory System 1.0 allows an attacker to manipulate the sid parameter in the update_sales.php handler. This results in unsanitized input being incorporated into an SQL query, enabling arbitrary SQL injection. An attacker can execute malicious SQL statements over the network, potentially reading, modifying, or deleting data in the underlying database.

Affected Systems

The affected product is SourceCodester Sales and Inventory System version 1.0, deployed via the update_sales.php script. The issue resides in the component handling HTTP GET parameters.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the EPSS score of less than 1% suggests a low probability of exploitation. However, the vulnerability can be triggered remotely, and a public exploit exists, raising the risk for systems still running the vulnerable version. Without an official vendor fix or workaround, attackers who discover this flaw can compromise the database directly by sending crafted GET requests to the update_sales.php endpoint.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Verify the installed version of SourceCodester Sales and Inventory System—if it is 1.0, consider upgrading or applying a vendor patch once available.
  • If upgrading is not immediately possible, restrict remote access to the update_sales.php endpoint by using firewall rules or web‑application firewall constraints.
  • Implement input validation for the sid parameter, allowing only integer values and rejecting any non‑numeric input before it reaches the database layer.
  • Replace the vulnerable query construction with parameterized queries or prepared statements to prevent SQL injection.
  • Audit database logs and monitor for unusual query activity that may indicate exploitation attempts.

Generated by OpenCVE AI on April 8, 2026 at 20:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
CPEs cpe:2.3:a:ahsanriaz26gmailcom:sales_and_inventory_system:1.0:*:*:*:*:*:*:*
Vendors & Products Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System
Type Values Removed Values Added
Description A vulnerability was found in SourceCodester Sales and Inventory System 1.0. This affects an unknown part of the file /update_sales.php of the component HTTP GET Parameter Handler. The manipulation of the argument sid results in sql injection. The attack may be launched remotely. The exploit has been made public and could be used.
Title SourceCodester Sales and Inventory System HTTP GET Parameter update_sales.php sql injection
Weaknesses CWE-74
CWE-89
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 26, 2026, 5:52 PM
Reserved
Mar 25, 2026, 2:04 PM
Status
Analyzed
Published
Mar 25, 2026, 11:17 PM
Modified
Jun 17, 2026, 10:57 AM