---
id: CVE-2026-71237
title: >-
  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
  pass…
summary: >-
  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
  pass…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
published: '2026-08-05'
updated: '2026-08-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71237'
references:
  - url: 'https://github.com/Miantang/IoT-PHP'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
tags:
  - nvd
epss: 0.00781
epssPercentile: 0.54029
ingestedAt: '2026-08-10T12:39:48.872Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
