/

CVE-2026-78248

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Simple Food Ordering System

CVE-2026-78248

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 administrative settings functionality of Simple Online Food Ordering System 1.0 may allow attacker-controlled input to alter database queries. Because the affected endpoint is remotely reachable, exploitation may be possible when an attacker can submit requests to it.

Affected context

The vulnerability appears in the administrative AJAX endpoint /fos/admin/ajax.php?action=save_settings, where the Name argument is processed as part of a database operation. Risk is higher when the endpoint is exposed remotely and input is not consistently parameterized or constrained before reaching the database layer.

Exploit preconditions

  • Attack surface: HTTP request handling for the administrative AJAX endpoint - Required access: Network access to the affected application; authentication

requirements depend on the application's administrative access controls

  • Trigger point: Processing the Name parameter in the save-settings action - Why exploitation is possible: Attacker-controlled input may influence SQL

statement construction rather than being treated solely as data

Why this happens

The underlying bug is an injection flaw in which externally supplied data is incorporated into a database query without sufficient separation between commands and values. This behavior maps primarily to CWE-89, SQL Injection, and is also related to CWE-74, Injection, because an input value may alter the interpretation of a downstream command or query. The insecure pattern typically involves dynamic query construction, incomplete escaping, or validation that does not enforce parameterized database access.

Potential impact

  • An attacker may read unauthorized application or customer data.
  • An attacker could modify, delete, or corrupt database records.
  • The application may expose administrative configuration or credentials stored in the database.
  • Database availability could be reduced through destructive or resource-intensive queries.
  • The vulnerability can provide a path to broader application compromise when database privileges are excessive.

General mitigation guidance

Mitigation generally centers on treating all request parameters as untrusted and

ensuring that database commands and data remain separate.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for every database operation.
  • Applying allowlist validation appropriate to the expected Name value.
  • Avoiding string concatenation when constructing SQL statements.
  • Restricting database accounts to the minimum permissions required by the application.
  • Limiting exposure of administrative endpoints through authentication, authorization, and network policy.
  • Preventing sensitive database errors from being returned to clients.

How teams detect issues like this

Detection approaches may include:

  • Static analysis rules that identify SQL string concatenation or interpolation involving request parameters.
  • Code review checks for database calls that do not use parameter binding.
  • Dynamic testing of administrative endpoints with controlled invalid input and database error monitoring.
  • Web application firewall or API policy rules that flag suspicious database-language metacharacters, used as a secondary control rather than a substitute for safe query construction.
  • Automated security review tools that identify injection-prone data flows from HTTP parameters to database APIs.

Sources

SourceLink
github.comgithub.com/huliangjia/cve/issues/3
vuldb.comvuldb.com/cve/CVE-2026-78248
vuldb.comvuldb.com/submit/886184
vuldb.comvuldb.com/vuln/394598
vuldb.comvuldb.com/vuln/394598/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

The affected endpoint is remotely reachable, so exploitation may be possible over

the network when the endpoint is exposed and applicable access controls do not

prevent requests from reaching it.

The available description does not establish whether authentication is required.

The practical requirement is access to the endpoint, which may depend on the

application's administrative authentication and authorization configuration.

Use parameterized queries or prepared statements, validate inputs against an

appropriate allowlist, and ensure the database account has only necessary

permissions.

Enforce secure database-access patterns through shared data-access libraries,

code review, static analysis, security testing, and policies that prohibit

dynamically concatenated SQL.

Find out what's already
exploitable in your codebase.