๐Ÿ” CVE Alert

CVE-2026-71237

CRITICAL 9.8

Miantang IoT-PHP: Unauthenticated SQL Injection in /userlogin

CVSS Score
9.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-89
Vendor miantang
Product iot-php
Published Aug 5, 2026
Last Updated Aug 5, 2026
Stay Ahead of the Next One

Get instant alerts for miantang iot-php

Be the first to know when new critical vulnerabilities affecting miantang iot-php are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

Miantang / IoT-PHP
0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/Miantang/IoT-PHP

Credits

Mirdavlatov Mira'zam