/

CVE-2026-103229

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in AdithyaYelloju Restaurant

CVE-2026-103229

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized database access and manipulation

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A SQL injection vulnerability in the Restaurant-Management-System allows remotely supplied input in the ID argument of admin/delete1.php to influence a database query. Because the affected action is described as unauthenticated, an attacker may be able to manipulate database operations without logging in.

Affected context

The issue occurs in the application's unauthenticated action script at admin/delete1.php, where the ID argument is passed into a mysqli_query database operation. Deployments may be at risk when this endpoint is remotely reachable and request parameters are incorporated into SQL statements without adequate separation from query syntax.

Exploit preconditions

  • Attack surface: Remotely reachable HTTP endpoint
  • Required access: No authentication may be required for the affected action
  • Trigger point: Processing the ID argument in admin/delete1.php
  • Why exploitation is possible: User-controlled input can influence a database query when it is not safely parameterized or otherwise isolated from SQL syntax

Why this happens

The underlying flaw is an insufficient separation between untrusted request data and SQL commands. When the ID parameter is incorporated into a mysqli_query operation without robust parameter binding and validation, database syntax may be altered by attacker-controlled input. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection); CWE-74 broadly describes the underlying failure to neutralize special elements in an interpreted command.

Potential impact

  • An attacker may read unauthorized database information
  • An attacker could modify or delete application records
  • The vulnerability may enable authentication or authorization data tampering
  • Database availability could be affected through destructive or resource-intensive queries
  • Sensitive application data may be exposed or corrupted

General mitigation guidance

Mitigation generally focuses on ensuring that request data cannot alter SQL command structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist validation for identifiers expected to have a specific type or format
  • Avoid constructing SQL statements through string concatenation
  • Enforce authentication and authorization before destructive administrative actions
  • Apply least-privilege permissions to the application's database account
  • Return generic database errors to clients while recording useful security telemetry internally
  • Treat unauthenticated endpoints as high-risk and minimize their available operations

How teams detect issues like this

Organizations can look for:

  • Static analysis findings involving SQL construction from request parameters
  • Code review signals such as string concatenation passed to mysqli_query
  • Missing prepared statements around administrative or deletion-related queries
  • Dynamic testing of reachable parameters using safe, non-destructive injection probes
  • Web application firewall or API policy rules for unexpected database metacharacters, used as defense in depth rather than a primary fix
  • Database audit logs showing unusual query structure, unexpected access patterns, or unauthenticated activity

Sources

SourceLink
github.comgithub.com/AdithyaYelloju/Restaurant-Management-System/
github.comgithub.com/AdithyaYelloju/Restaurant-Management-System/issues/5
vuldb.comvuldb.com/cve/CVE-2026-103229
vuldb.comvuldb.com/submit/955078
vuldb.comvuldb.com/vuln/411922
vuldb.comvuldb.com/vuln/411922/cti

Frequently asked

questions

Yes. The reported attack surface is a remotely reachable endpoint, and the affected action is described as unauthenticated. Actual exposure depends on whether the endpoint is accessible in a deployment.

The reported component is an unauthenticated action script, so an account may not be required. Network access to the endpoint and the ability to submit the affected argument are the key conditions.

Use prepared statements with bound parameters, validate the expected input type, and enforce authorization before performing administrative or destructive database actions.

Adopt parameterized-query standards, use static analysis and code review rules for SQL construction, apply least-privilege database permissions, and monitor database activity from public endpoints.

Find out what's already
exploitable in your codebase.