Skip to main content

IoT-PHP EUVDEUVD-2026-53310

| CVE-2026-71237 CRITICAL
SQL Injection (CWE-89)
2026-08-05 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-wjx2-3579-9x87
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
    Locate IoT-PHP login endpoint
  2. Delivery
    Send POST /userlogin with pwd injection payload
  3. Exploit
    Bypass WHERE clause authentication check
  4. Execution
    Issue UNION-based SQL injection
  5. Impact
    Extract credentials and database contents

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

Exploitation requires only network access to the IoT-PHP application's POST /userlogin endpoint, which must be reachable by the attacker; the vulnerable code path is the default login handler, so no special feature flag or non-default configuration is needed. The concrete prerequisite is the ability to submit the 'pwd' POST parameter to index.php's /userlogin route - an attacker sends a single-quote-based payload (e.g. pwd=' OR '1'='1) with no valid credentials. Per the CVSS vector (PR:N/UI:N), no authentication and no user interaction are required. The primary limiting factor is deployment exposure: the application must be network-reachable, and risk is bounded by the product's apparently small install base rather than by any technical barrier to exploitation.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, base 9.8) is well-justified by the description: the flaw is remotely reachable over the network, requires no authentication or user interaction, and is trivially exploitable against the default login path. The technical impact is high across confidentiality (full database read), integrity (authentication bypass), and potentially availability. However, key real-world risk signals are absent: no EPSS probability, no KEV listing, and no confirmed public POC were provided, so exploitation status is 'no public exploit identified at time of analysis' - this reflects missing intelligence, not evidence of low interest. The dominant mitigating factor is prevalence: IoT-PHP appears to be a small, single-author GitHub project with no evident enterprise footprint, meaning the high CVSS reflects severity-per-instance rather than widespread exposure. Treat as critical wherever this specific application is deployed, but likely low aggregate risk across a typical fleet.

Exploit ScenarioDerived

An unauthenticated attacker locates the IoT-PHP login page and sends a POST request to /userlogin with pwd=' OR '1'='1, causing the WHERE clause to evaluate true and logging them in as the first user in the userlists table. Escalating with a UNION SELECT payload in the same field, the attacker then dumps usernames, password hashes, and any other data reachable through the database connection. No user interaction, authentication, or non-default configuration is required.

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

Authentication bypass and database exfiltration in Miantang's IoT-PHP application via SQL injection in the login handler. The POST /userlogin route in index.php concatenates the unsanitized $_POST['pwd'] value directly into a MySQL query, letting an unauthenticated attacker log in as any user with a payload like pwd=' OR '1'='1 and use UNION-based injection to read arbitrary database contents. No public exploit identified at time of analysis, though the technique is trivial and well-documented; no EPSS or KEV data was supplied.

RemediationAI

No vendor-released patch identified at time of analysis. The definitive fix is to replace the string-concatenated query with a parameterized prepared statement (PDO or mysqli with bound parameters) and to migrate off the deprecated mysql_query() API entirely; never rely on htmlspecialchars() for SQL safety, and if quote-encoding is desired ensure ENT_QUOTES is set (though this is not a substitute for parameterization). As immediate compensating controls until code can be fixed: restrict network access to the application (place it behind a VPN or IP allowlist so the /userlogin endpoint is not internet-exposed), and deploy a WAF rule to block SQL metacharacters in the pwd and username POST parameters - noting that WAF filtering can be bypassed and may break legitimate passwords containing special characters. Monitor the project repository at https://github.com/Miantang/IoT-PHP for an upstream fix commit.

Affected VersionsENISA

IoT-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

IoT-PHP is a PHP web application backed by MySQL that uses the legacy mysql_query() API. The vulnerability is a textbook CWE-89 (SQL Injection) flaw: user input from the password field is interpolated into a raw SQL string - mysql_query("select * from userlists where username='$username' and password='$password' limit 1") - with no parameterization or escaping. Notably, the developer applied htmlspecialchars() to the username as a defense, but htmlspecialchars() without the ENT_QUOTES flag does not encode single quotes, so it provides no protection against SQL injection; the password field receives no filtering at all. Because the query returns a user row on a truthy WHERE clause, injection both bypasses authentication and, through UNION SELECT, allows extraction of any column from any accessible table.

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

Remote unauthenticated injection via the default login endpoint (AV:N/AC:L/PR:N/UI:N); full DB read and auth bypass give high confidentiality, integrity, and availability impact.

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

Miantang/IoT-PHP's index.php implements a POST /userlogin route that reads the password directly from $_POST['pwd'] with no sanitization and concatenates it into a raw SQL string: mysql_query("select * from userlists where username='$username' and password='$password' limit 1"). The username value is passed through htmlspecialchars(), which does not encode single quotes by default and therefore does not prevent SQL injection through the password field. An unauthenticated attacker can submit a payload such as pwd=' OR '1'='1 to bypass authentication and, via UNION-based injection, extract arbitrary data from the database.

Executive ViewAI

Why It Matters

Miantang's IoT-PHP application contains a critical SQL injection vulnerability in the login handler (CVSS 9.8) enabling attackers to bypass authentication and exfiltrate the entire database. No public exploit identified at time of analysis. Organizations running this application face immediate risk of unauthorized access and complete data compromise, with no vendor patch currently available.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to the application via firewall rules limiting connections to essential trusted sources only; deploy Web Application Firewall (WAF) rules to block SQL injection payloads in login parameters; disable unnecessary remote access features; enable comprehensive database audit logging with alerts on unusual query patterns or unauthorized data access; consider air-gapping affected systems from the broader network pending vendor patch release.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Rare
single-author GitHub PHP project, no evident enterprise deployment
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.

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