Description
A SQL Injection vulnerability exists in SourceCodester Online Food Ordering System v1.0 in the admin/view_product.php file via the "id" parameter.
Published: 2026-03-27
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Data exposure via SQL injection
Action: Patch Immediately
AI Analysis

Impact

SourceCodester Online Food Ordering System version 1.0 contains a flaw in the admin/view_product.php page where the id parameter is inserted directly into a SQL query without validation or sanitisation. This allows an attacker to manipulate the underlying database query, potentially extracting sensitive data such as product details, orders or customer information, and even altering or deleting records. The vulnerability is a classic SQL injection (CWE‑89) that compromises database confidentiality and integrity.

Affected Systems

The vulnerability affects the Online Food Ordering System v1.0, a web application for ordering food developed by oretnom23, specifically within the admin/view_product.php endpoint. No other versions or components are referenced; thus the risk applies only to this product version.

Risk and Exploitability

The CVSS base score of 9.8 signals a critical severity, yet the EPSS score below 1% indicates a low probability of current exploitation, and the issue is not listed in CISA’s KEV catalog. Attackers can exploit the flaw by sending crafted HTTP requests to the vulnerable admin/view_product.php endpoint. Based on the description, it is inferred that access to this page is intended for administrators, so an attacker would normally need to bypass authentication or use compromised administrative credentials to reach it. Once accessed, the injection allows manipulation of the underlying database.

Generated by OpenCVE AI on March 30, 2026 at 20:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor’s patch or upgrade to a non‑vulnerable version of the Online Food Ordering System.
  • Restrict access to the admin/view_product.php page to authenticated administrators only, and consider IP whitelisting or network segmentation.
  • Refactor the code to use parameterised queries or prepared statements that properly validate the id parameter.
  • Implement logging and monitoring of unusual SQL activity, and configure alerts for suspicious query patterns.
  • Conduct a comprehensive code review or penetration test to ensure there are no additional SQL injection vectors in the application.

Generated by OpenCVE AI on March 30, 2026 at 20:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 31 Mar 2026 03:00:00 +0000

Type Values Removed Values Added
Title SQL Injection in Admin View Product of Online Food Ordering System

Mon, 30 Mar 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Oretnom23
Oretnom23 online Food Ordering System
CPEs cpe:2.3:a:oretnom23:online_food_ordering_system:1.0:*:*:*:*:*:*:*
Vendors & Products Oretnom23
Oretnom23 online Food Ordering System

Mon, 30 Mar 2026 08:15:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester online Food Ordering System
Vendors & Products Sourcecodester
Sourcecodester online Food Ordering System

Sun, 29 Mar 2026 20:45:00 +0000

Type Values Removed Values Added
Title SQL Injection in Admin Product View on SourceCodester Online Food Ordering System

Sat, 28 Mar 2026 03:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 27 Mar 2026 20:30:00 +0000

Type Values Removed Values Added
Title SQL Injection in Admin Product View on SourceCodester Online Food Ordering System
Weaknesses CWE-89

Fri, 27 Mar 2026 15:30:00 +0000

Type Values Removed Values Added
Description A SQL Injection vulnerability exists in SourceCodester Online Food Ordering System v1.0 in the admin/view_product.php file via the "id" parameter.
References

Subscriptions

Oretnom23 Online Food Ordering System
Sourcecodester Online Food Ordering System
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-03-27T20:17:27.795Z

Reserved: 2026-03-04T00:00:00.000Z

Link: CVE-2026-30532

cve-icon Vulnrichment

Updated: 2026-03-27T20:16:44.815Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-27T16:16:23.803

Modified: 2026-03-30T18:17:55.173

Link: CVE-2026-30532

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-30T20:57:17Z

Weaknesses