9.8critical
IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie
- Severity
- 9.8critical CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
Description
IOTSmartHome's gui/login.php checkCookie function builds an authentication query as SELECT * FROM users WHERE ID='<decoded lastLogin cookie>' after base64-decoding the client-supplied lastLogin cookie via safe_decode, which performs URL-safe base64 decoding with no sanitization of the decoded value before it is concatenated into the SQL string.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| thebradleysanders IOTSmartHome | 0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
IOTSmartHome's gui/login.php checkCookie function builds an authentication query as SELECT * FROM users WHERE ID='<decoded lastLogin cookie>' after base64-decoding the client-supplied lastLogin cookie via safe_decode, which performs URL-safe base64 decoding with no sanitization of the decoded value before it is concatenated into the SQL string.
NVD (es)
La función checkCookie() de gui/login.php de IOTSmartHome construye una consulta de autenticación como SELECT * FROM users WHERE ID=’menor quecookie lastLogin decodificadamayor que’ después de decodificar en base64 la cookie lastLogin proporcionada por el cliente a través de safe_decode(), que realiza una decodificación base64 segura para URL sin sanitización del valor decodificado antes de que se concatene en la cadena SQL. Un atacante no autenticado puede establecer una cookie lastLogin que contenga una carga útil de inyección SQL codificada en base64 (por ejemplo, base64(“ [expresión_SQLi_PoC] ”)) para eludir la autenticación y, a través de una inyección basada en UNION, extraer datos arbitrarios incluyendo credenciales de usuario.
References
| https://github.com/thebradleysanders/IOTSmartHome | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-71231 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-71231 changed 2026-10-24 | Public domain |