CVE-2026-71237: CWE-89 SQL Injection in Miantang IoT-PHP
Miantang/IoT-PHP's index.php implements a POST /userlogin route that reads the password directly from ['pwd'] with no sanitization and concatenates it into a raw SQL string: mysql_query("select * from userlists where username='' and password='' limit 1"). 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.
AI Analysis
Technical Summary
Miantang IoT-PHP's index.php implements a POST /userlogin route that reads the password directly from the 'pwd' POST parameter without any sanitization. This value is concatenated into a raw SQL query string executed by mysql_query, enabling an attacker to inject SQL code. An attacker can submit a payload such as pwd=' OR '1'='1 to bypass authentication and use UNION-based SQL injection to extract arbitrary data from the database. The vulnerability is identified as CWE-89 (SQL Injection) and has a CVSS 3.1 score of 9.8, indicating critical severity. No patch or official remediation is currently documented.
Potential Impact
An unauthenticated attacker can bypass authentication controls and gain unauthorized access. Additionally, the attacker can perform UNION-based SQL injection to extract arbitrary data from the backend database, potentially exposing sensitive information and compromising confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, it is recommended to implement input validation and parameterized queries to prevent SQL injection. Avoid direct concatenation of user input into SQL statements.
CVE-2026-71237: CWE-89 SQL Injection in Miantang IoT-PHP
Description
Miantang/IoT-PHP's index.php implements a POST /userlogin route that reads the password directly from ['pwd'] with no sanitization and concatenates it into a raw SQL string: mysql_query("select * from userlists where username='' and password='' limit 1"). 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.
CVSS v3.1
Score 9.8critical
Affected software
Miantang
IoT-PHP
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Miantang IoT-PHP's index.php implements a POST /userlogin route that reads the password directly from the 'pwd' POST parameter without any sanitization. This value is concatenated into a raw SQL query string executed by mysql_query, enabling an attacker to inject SQL code. An attacker can submit a payload such as pwd=' OR '1'='1 to bypass authentication and use UNION-based SQL injection to extract arbitrary data from the database. The vulnerability is identified as CWE-89 (SQL Injection) and has a CVSS 3.1 score of 9.8, indicating critical severity. No patch or official remediation is currently documented.
Potential Impact
An unauthenticated attacker can bypass authentication controls and gain unauthorized access. Additionally, the attacker can perform UNION-based SQL injection to extract arbitrary data from the backend database, potentially exposing sensitive information and compromising confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, it is recommended to implement input validation and parameterized queries to prevent SQL injection. Avoid direct concatenation of user input into SQL statements.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T10:53:53.175Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a731a81bf8831d539c95c9c
Added to database: 08/05/2026, 11:12:01 UTC
Last enriched: 08/12/2026, 14:27:46 UTC
Last updated: 09/18/2026, 10:01:33 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.