/

CVE-2026-96601

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in online-makeup-store Admin Login

CVE-2026-96601

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized database access and data 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 online-makeup-store Admin Login Handler allows remotely supplied id or password values to influence database queries. An unauthenticated or otherwise reachable attacker may be able to read, alter, or interfere with database-backed application data when input is not safely separated from SQL commands.

Affected context

The issue occurs in the index.php Admin Login Handler of online-makeup-store when request parameters used for id or password are incorporated into database operations without adequate separation or validation. Risk depends on whether the handler is publicly reachable, the privileges of its database account, and the query behavior associated with authentication.

Exploit preconditions

  • Attack surface: Remotely accessible Admin Login Handler
  • Required access: Network access to the affected application; authentication may not be required
  • Trigger point: Processing of the id or password parameters in index.php
  • Why exploitation is possible: User-controlled values may influence SQL statement structure rather than being treated strictly as data

Why this happens

The underlying bug is a failure to maintain a clear boundary between untrusted input and SQL commands. When request parameters are concatenated into queries or otherwise interpreted as query syntax, an attacker-controlled value can alter database logic. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection); the related CWE-74 reflects the broader injection-class weakness.

Potential impact

  • An attacker may bypass authentication checks
  • Sensitive database records could be disclosed
  • Application or account data could be modified or deleted
  • Database-backed services may become unavailable
  • Compromised data could support further application or administrative abuse

General mitigation guidance

Mitigation generally centers on ensuring that database queries cannot interpret request data as executable SQL.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for every database operation
  • Applying narrowly scoped, allowlisted validation to identifiers and other expected values
  • Avoiding dynamic SQL construction from request parameters
  • Separating database credentials by function and granting only required privileges
  • Returning generic authentication errors and minimizing database-detail exposure
  • Treating client-controlled input as untrusted across all authentication and administrative endpoints

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis for string concatenation or interpolation within SQL execution calls
  • Code review of authentication handlers and all database access paths
  • Dynamic testing using safe, non-destructive injection probes in authorized environments
  • Web application firewall or gateway policies that flag suspicious query-like input patterns
  • Database monitoring for anomalous authentication queries, unusual error rates, and unexpected access patterns
  • Automated security review tools that identify unsafe query construction

Sources

SourceLink
github.comgithub.com/yashkeral/cve-writeups/blob/main/online-makeup-store/01-admin-login-sqli.md
vuldb.comvuldb.com/cve/CVE-2026-96601
vuldb.comvuldb.com/submit/898997
vuldb.comvuldb.com/vuln/408967
vuldb.comvuldb.com/vuln/408967/cti

Frequently asked

questions

Yes. The reported attack surface is the remotely accessible Admin Login Handler, although actual exposure depends on network reachability and deployment controls.

It may not. If the login endpoint accepts attacker-controlled parameters before successful authentication, unauthenticated network access could be sufficient.

Use parameterized queries or prepared statements, validate inputs according to their expected formats, and avoid constructing SQL statements from raw request data.

Combine secure database APIs with least-privilege database accounts, focused code review, automated analysis, and monitoring of authentication and query behavior.

Find out what's already
exploitable in your codebase.