Description
A vulnerability was found in SourceCodester Sales and Inventory System 1.0. This affects an unknown part of the file purchase_invoice.php of the component GET Parameter Handler. The manipulation of the argument purchaseid results in sql injection. The attack may be performed from remote. The exploit has been made public and could be used.
Published: 2026-03-09
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: SQL Injection
Action: Apply Patch
AI Analysis

Impact

A vulnerability in the SourceCodester Sales and Inventory System 1.0 allows an attacker to inject arbitrary SQL through the purchaseid GET parameter in purchase_invoice.php. The flaw arises from unsanitized input handling in the GET parameter handler, enabling malicious queries that can read, modify, or delete database contents. If exploited, an attacker could compromise data confidentiality and integrity, potentially affecting all users of the system.

Affected Systems

This issue affects the SourceCodester Sales and Inventory System version 1.0, specifically the purchase_invoice.php module that processes the purchaseid GET argument. No other versions or components are listed as affected.

Risk and Exploitability

The CVSS base score of 5.3 categorizes the vulnerability as moderate severity. The EPSS score of less than 1% indicates a low probability of exploitation at the present time, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is remote, and no authentication is required; an adversary can trigger the injection simply by crafting a specially crafted URL. Given that the exploit is publicly available, the risk to affected installations remains significant, particularly in environments lacking input sanitization or access controls.

Generated by OpenCVE AI on April 16, 2026 at 04:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SourceCodester Sales and Inventory System to the latest release or apply the vendor's security patch if available.
  • Validate and sanitize the purchaseid GET parameter before using it in SQL queries to eliminate injected code.
  • Implement prepared statements or parameterized queries for all database interactions involving purchaseid.
  • Restrict access to purchase_invoice.php so that only authorized users can invoke the endpoint.

Generated by OpenCVE AI on April 16, 2026 at 04:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 10 Mar 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 10 Mar 2026 14:15:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System

Mon, 09 Mar 2026 15:15:00 +0000

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

Mon, 09 Mar 2026 01:30:00 +0000

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 purchase_invoice.php of the component GET Parameter Handler. The manipulation of the argument purchaseid results in sql injection. The attack may be performed from remote. The exploit has been made public and could be used.
Title SourceCodester Sales and Inventory System GET Parameter purchase_invoice.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'}


Subscriptions

Ahsanriaz26gmailcom Sales And Inventory System
Sourcecodester Sales And Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-03-10T20:26:58.324Z

Reserved: 2026-03-08T07:24:01.867Z

Link: CVE-2026-3792

cve-icon Vulnrichment

Updated: 2026-03-10T20:26:55.494Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-09T02:15:47.413

Modified: 2026-03-09T15:04:19.667

Link: CVE-2026-3792

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-16T04:15:24Z

Weaknesses