Skip to main content

Inventory-Management-System-PHP CVE-2026-71248

| EUVDEUVD-2026-53321 CRITICAL
SQL Injection (CWE-89)
2026-08-05 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-w54w-xf28-wf79
9.8
CVSS 3.1 · Vendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed PHP app over network
  2. Delivery
    Send crafted id to delete.php
  3. Exploit
    Inject SQL (no auth, no validation)
  4. Execution
    Bypass login via OR 1=1 payload
  5. Persist
    Delete product rows or blind-extract data
  6. Impact
    Full data loss and DB compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions are required for the delete.php vector - unauthenticated remote exploitation works against a default deployment by sending a single crafted GET request to delete.php with a malicious id parameter, because the endpoint has no authentication check and no input validation. The login.php authentication bypass likewise needs only network reachability of the login form and a crafted email POST parameter (email=' OR 1=1 LIMIT 1-- -), and depends on the user table containing at least one row so the LIMIT 1 tautology returns exactly one record to satisfy the $count == 1 check. The principal limiting factor is exposure and prevalence rather than configuration: the app must be network-reachable and running, and because it is a niche GitHub project, the realistic attack surface is small; there is no required user interaction, no authentication, and no non-default setting needed.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) is internally consistent with the description: both endpoints are reachable over the network, require no authentication, no user interaction, and low complexity, with the auth bypass yielding confidentiality/integrity impact and the delete.php injection yielding integrity (arbitrary deletion) and availability (data loss) plus confidentiality via blind extraction. No EPSS score was provided, so exploitation-probability cannot be quantified; no KEV listing and no confirmed POC flag were supplied, so there is no evidence of active exploitation despite the maximal CVSS. The SSVC signals were not provided, but qualitatively exploitation is 'automatable' (a simple HTTP GET/POST with a fixed payload) and technical impact is 'total.' The dominant mitigating factor is deployment footprint, not exploit difficulty: this is a hobby/educational GitHub project, so the real-world priority is low-to-moderate for the small population actually running it, even though the technical severity is genuinely critical. No signals conflict; the main gap is missing EPSS/POC/KEV metadata rather than contradiction.

Exploit ScenarioDerived

An unauthenticated attacker sends a POST to login.php with email=' OR 1=1 LIMIT 1-- - and any password, immediately gaining an authenticated session as the first user in the user table and full access to the inventory management interface. Separately, or without any login at all, the attacker issues GET delete.php?id=0 OR 1=1 to wipe the entire product table, or id=0 OR SLEEP(5) to run a blind time-based SQL injection and exfiltrate database contents byte-by-byte. Working payloads are published in the advisory description, lowering the skill barrier even though no packaged exploit tool was identified.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

SQL injection in the Inventory-Management-System-PHP application (Harsh21Patel GitHub project) allows unauthenticated attackers to fully bypass authentication and destructively manipulate the product database. login.php concatenates raw POST email/password into its query, so a payload like email=' OR 1=1 LIMIT 1-- - logs in as the first user, while delete.php runs a DELETE on an unsanitized GET id parameter with no auth check, enabling arbitrary row deletion and blind SQLi. No public exploit identified at time of analysis, though the advisory itself publishes working payloads; the flaw carries CVSS 9.8 and is not listed in CISA KEV.

RemediationAI

Apply the upstream fix from pull request #3 (https://github.com/Harsh21Patel/Inventory-Management-System-PHP/pull/3), which converts both queries to parameterized prepared statements ($con->prepare / bind_param) and casts the delete id to an integer; the fix is delivered as a PR/commit rather than a tagged release, so a released patched version is not independently confirmed and operators should merge or cherry-pick the commit directly. Beyond the code fix, add a server-side authentication/session check to delete.php (and all state-changing endpoints), since it currently performs deletes with no auth gate at all. As compensating controls until patched: restrict access to delete.php via web-server ACLs or authentication middleware (trade-off: may break legitimate admin flows if session handling is not wired up); change the MySQL account away from root-with-empty-password to a least-privilege user lacking DROP/broad DELETE rights (trade-off: requires re-testing app DB operations); and place a WAF rule to block SQL meta-characters and tautology patterns on the email, password, and id parameters (trade-off: pattern-based rules are bypassable and can cause false positives).

Affected VersionsENISA

Inventory-Management-System-PHP 0

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The application is a small PHP + MySQL (mysqli) inventory CRUD app. The root cause class is CWE-89 (SQL Injection): both vulnerable endpoints build SQL by direct string interpolation of client-controlled input with no escaping (mysqli_real_escape_string), no parameterization (prepared statements), and no type validation. In login.php the query 'select * from user where email = '$email' and password = '$password'' is subverted with a tautology plus 'LIMIT 1' to force exactly one returned row, satisfying the $count == 1 gate and turning the authentication check into an authentication bypass. In delete.php the integer product_id is concatenated directly ('DELETE FROM product WHERE product_id=' . $_GET['id']), so payloads such as '0 OR 1=1' delete all rows and time-based payloads such as '0 OR SLEEP(5)' create a blind boolean/time-based SQLi oracle. The database user is configured as MySQL 'root' with an empty password, maximizing the blast radius of any injection. No specific CPE strings were supplied in the input.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

delete.php is remotely reachable with no auth, no user interaction, and low complexity; blind SQLi enables data extraction (C:H), arbitrary deletion (I:H), and data destruction (A:H).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).

CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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).

Executive ViewAI

Why It Matters

Inventory-Management-System-PHP contains a critical SQL injection vulnerability allowing unauthenticated attackers to bypass login and delete arbitrary database records. Any organization using this application faces immediate risk of unauthorized access and data destruction. Remediation is urgent as no vendor patch is currently available.

Business Impact: Severe
Compensating Controls

Deploy Web Application Firewall rules to detect and block SQL injection payloads targeting email and id parameters; implement emergency source code patches to enforce parameterized queries in all database queries; restrict database-layer access to the application account using principle of least privilege; enable audit logging on all DELETE operations and authentication attempts; segment the application network from critical systems; maintain and test regular database backups for recovery capability.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Rare
hobby/educational GitHub PHP project, no enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy