/

CVE-2026-96602

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Online Makeup Store Login

CVE-2026-96602

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database Access and Authentication Bypass

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 Customer Login Handler allows remotely supplied username or password values to influence database queries.

An attacker may exploit this condition to bypass authentication, read or alter database content, or disrupt application behavior when input is incorporated into SQL without adequate separation from query logic.

Affected context

The issue occurs in the customerSignin.php login component of Abdurrab5 online-makeup-store deployments when username or password input reaches database queries without sufficient parameterization or validation. Because the login handler is remotely accessible, the risk depends on whether attacker-controlled values can affect SQL statement structure and on the database account privileges available to the application.

Exploit preconditions

  • Attack surface: Remote customer login endpoint
  • Required access: Access to the publicly reachable login interface; no prior authenticated session may be necessary
  • Trigger point: Processing of the username or password arguments by customerSignin.php
  • Why exploitation is possible: User-controlled input may be interpreted as SQL syntax when query construction does not reliably separate data from commands

Why this happens

The underlying bug is an injection flaw in which externally supplied authentication values are combined with SQL statements in a way that permits the input to alter query meaning. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component, because input is passed to a downstream SQL interpreter without a sufficiently strict trust boundary.

Potential impact

  • An attacker may bypass the intended authentication logic
  • An attacker could read unauthorized database records
  • Database contents could be modified or deleted
  • Application availability could be affected through disruptive queries
  • Exposed data may enable further compromise of users or connected services

General mitigation guidance

Mitigation generally focuses on ensuring that database commands cannot be changed by user-supplied data.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Avoid constructing SQL through string concatenation or interpolation
  • Apply allowlist-based input validation appropriate to each field
  • Use database accounts with only the permissions required by the login workflow
  • Keep authentication decisions within well-tested, centralized data-access routines
  • Treat client-side validation as supplemental rather than a security boundary
  • Avoid exposing detailed database errors to remote users

How teams detect issues like this

Organizations can look for SQL injection risks through:

  • Static analysis patterns that identify string-built SQL using request parameters
  • Code review checks for direct use of username, password, or other request values in query construction
  • Dynamic testing of authentication endpoints using controlled, non-destructive injection probes
  • Web application firewall or API policy rules that detect anomalous query-like input
  • Database monitoring for unexpected query structures, authentication bypass patterns, and excessive error responses
  • Automated security review tools that flag unsafe database API usage

Sources

SourceLink
github.comgithub.com/yashkeral/cve-writeups/blob/main/online-makeup-store/02-customer-login-sqli.md
vuldb.comvuldb.com/cve/CVE-2026-96602
vuldb.comvuldb.com/submit/898998
vuldb.comvuldb.com/vuln/408968
vuldb.comvuldb.com/vuln/408968/cti

Frequently asked

questions

Yes. The reported attack surface is the remotely accessible customer login handler, although practical impact depends on deployment and database configuration.

Not necessarily. Since the vulnerable inputs are part of the login flow, an attacker may only need access to the endpoint and the ability to submit request values.

Use parameterized queries or prepared statements so username and password values remain data rather than becoming part of SQL command structure.

Combine safe database APIs, least-privilege database accounts, focused code review, automated analysis, and monitoring of authentication and database-query anomalies.

Find out what's already
exploitable in your codebase.