Description
Inventory-Management-System-PHP's login.php constructs its authentication query via direct string concatenation of raw POST parameters: = "select * from user where email = '' and password = ''", with no escaping or parameterization, allowing authentication bypass via a payload such as email=' OR 1=1 LIMIT 1-- -.
Published: 2026-08-05
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in the login.php file where the authentication query is built by directly concatenating the email and password parameters into a SQL string. This lack of escaping or parameterization allows an attacker to inject SQL statements such as "' OR 1=1 LIMIT 1--" to bypass authentication, thereby gaining unauthorized system access. No additional impact such as data deletion is described in the updated information, and the attack primarily compromises confidentiality and integrity by allowing unauthenticated access.

Affected Systems

The affected application is "Harsh21Patel Inventory-Management-System-PHP". No specific version information is available, so all releases that contain the vulnerable login.php code should be considered at risk.

Risk and Exploitability

With a CVSS score of 9.8, the vulnerability is critically severe. The EPSS score is 0.00342, indicating a very low but nonzero exploitation probability. The vulnerability is not listed in the CISA KEV catalog, but the absence of any authentication checks on the exposed login endpoint means an unauthenticated attacker can reach and exploit this endpoint over the network using standard HTTP requests.

Generated by OpenCVE AI on August 10, 2026 at 21:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor patch or merge the pull request that fixes the unescaped SQL queries in login.php.
  • Replace string concatenated SQL statements with prepared statements or properly escape user input to eliminate injection risk.
  • Ensure the login process uses secure session handling, such as HTTPS and proper cookie flags, to protect authenticated sessions.

Generated by OpenCVE AI on August 10, 2026 at 21:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description Inventory-Management-System-PHP's login.php constructs its authentication query via direct string concatenation of raw POST parameters: $sql = "select * from user where email = '$email' and password = '$password'", with no escaping or parameterization, allowing authentication bypass via a payload such as email=' OR 1=1 LIMIT 1-- -. Separately, delete.php executes mysqli_query($db, "DELETE FROM product WHERE product_id=" . $_GET['id']) with no authentication check and no validation of the id parameter, allowing an unauthenticated attacker to delete arbitrary product rows or perform blind SQL injection via payloads such as id=0 OR SLEEP(5). Inventory-Management-System-PHP's login.php constructs its authentication query via direct string concatenation of raw POST parameters: = "select * from user where email = '' and password = ''", with no escaping or parameterization, allowing authentication bypass via a payload such as email=' OR 1=1 LIMIT 1-- -.

Mon, 10 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Title Inventory-Management-System-PHP: Unauthenticated SQL Injection in Login and Product Deletion Inventory-Management-System-PHP - Unauthenticated SQL Injection in Login and Product Deletion

Fri, 07 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Harsh21patel
Harsh21patel inventory-management-system-php
Vendors & Products Harsh21patel
Harsh21patel inventory-management-system-php

Wed, 05 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Description Inventory-Management-System-PHP's login.php constructs its authentication query via direct string concatenation of raw POST parameters: $sql = "select * from user where email = '$email' and password = '$password'", with no escaping or parameterization, allowing authentication bypass via a payload such as email=' OR 1=1 LIMIT 1-- -. Separately, delete.php executes mysqli_query($db, "DELETE FROM product WHERE product_id=" . $_GET['id']) with no authentication check and no validation of the id parameter, allowing an unauthenticated attacker to delete arbitrary product rows or perform blind SQL injection via payloads such as id=0 OR SLEEP(5).
Title Inventory-Management-System-PHP: Unauthenticated SQL Injection in Login and Product Deletion
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Harsh21patel Inventory-management-system-php
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:46:02.909Z

Reserved: 2026-08-05T10:53:53.176Z

Link: CVE-2026-71248

cve-icon Vulnrichment

Updated: 2026-08-05T12:42:41.964Z

cve-icon NVD

Status : Deferred

Published: 2026-08-05T11:16:27.863

Modified: 2026-08-26T17:13:24.800

Link: CVE-2026-71248

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T22:00:05Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')