Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate IoT-PHP login endpoint
-
DeliverySend POST /userlogin with pwd injection payload
-
ExploitBypass WHERE clause authentication check
-
ExecutionIssue UNION-based SQL injection
-
ImpactExtract 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-53310
GHSA-wjx2-3579-9x87
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB