/

CVE-2026-134892

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Cosmetics Store Admin Orders

CVE-2026-134892

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Potential unauthorized database access or modification

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

The admin order-management page in SourceCodester Cosmetics and Beauty Product Online Store 1.0 is reported to have SQL injection involving the ID argument. If the affected endpoint is reachable and the argument is incorporated into a database query unsafely, a remote attacker may be able to alter the query and access or modify data, depending on database permissions.

Affected context

The reported issue is in admin/orders/view_order.php, within the Admin Order Management component. It concerns how the ID argument is handled when the page processes an order request. Risk depends on whether the vulnerable code is present and the endpoint can be reached in the deployed application; the available description does not specify authentication requirements or database permissions.

Exploit preconditions

  • Attack surface: The order-view endpoint must be reachable over the network.
  • Required access: The description does not establish whether authentication is required; access controls may affect exposure.
  • Trigger point: Processing the ID argument in admin/orders/view_order.php.
  • Why exploitation is possible: SQL injection can occur when input influences a database query without effective parameterization or equivalent safeguards.

Why this happens

The reported behavior maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'). The underlying bug class is constructing or executing a database query in a way that allows an input value to change the query's intended structure. CWE-74 describes the broader class of improper neutralization in output contexts; CWE-89 is the more specific classification for SQL queries.

Potential impact

  • An attacker may be able to read database records beyond the intended order.
  • An attacker could alter or delete data if the query and database permissions allow it.
  • Sensitive customer or order information may be exposed.
  • Application functionality or data integrity could be affected.

General mitigation guidance

Defensive patterns for this class of issue include:

  • Using parameterized queries or prepared statements for database operations.
  • Treating request parameters as untrusted and validating them against the expected type and range.
  • Avoiding query construction through string concatenation.
  • Applying least-privilege permissions to database accounts.
  • Returning generic errors to users while recording diagnostic details securely.

How teams detect issues like this

  • Use static analysis to identify query construction that incorporates request parameters.
  • Review the order-view handler and related data-access code for parameterized query usage.
  • Apply code-review checks requiring safe database APIs for externally influenced values.
  • Use dynamic testing and application monitoring to look for unexpected database errors or anomalous query behavior.

Sources

SourceLink
github.comgithub.com/YukiJinyu/CVE/issues/1
vuldb.comvuldb.com/cve/CVE-2026-134892
vuldb.comvuldb.com/submit/1055174
vuldb.comvuldb.com/vuln/442248
vuldb.comvuldb.com/vuln/442248/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

The report says the attack can be carried out remotely. Actual exposure depends on whether the affected endpoint is reachable in a given deployment.

The description does not specify authentication requirements. Access controls may limit who can reach the order-management page, but should not replace safe query handling.

Use parameterized queries or prepared statements so input values cannot alter SQL query structure.

Treat request data as untrusted, review database access for unsafe query construction, and enforce secure query patterns through code review and automated analysis.

Find out what's already
exploitable in your codebase.