CVE-2026-71231
JSON

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 packageVersionsReported by
thebradleysanders IOTSmartHome0CVE List

Classification

CWE-89

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

Sources

SourceRecordLicence
CVE ListCVE-2026-71231 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-71231 changed 2026-10-24Public domain