CVE-2026-71231: CWE-89 SQL Injection in thebradleysanders IOTSmartHome
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. An unauthenticated attacker can set a lastLogin cookie containing a base64-encoded SQL injection payload (e.g. base64("' OR '1'='1")) to bypass authentication and, via UNION-based injection, extract arbitrary data including user credentials.
AI Analysis
Technical Summary
The IOTSmartHome's gui/login.php checkCookie() function uses the client-supplied lastLogin cookie, which is base64-decoded without sanitization, to build an SQL query: SELECT * FROM users WHERE ID='<decoded lastLogin cookie>'. This allows an unauthenticated attacker to inject SQL code by crafting a base64-encoded payload (e.g., base64("' OR '1'='1")) in the lastLogin cookie. Exploitation can bypass authentication and perform UNION-based SQL injection to extract sensitive data including user credentials. The vulnerability is identified as CWE-89 (SQL Injection) and has a CVSS 3.1 score of 9.8, indicating critical severity.
Potential Impact
Successful exploitation allows an unauthenticated attacker to bypass authentication controls and extract arbitrary data from the backend database, including user credentials. This compromises confidentiality, integrity, and availability of the affected system, potentially leading to full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid exposing the vulnerable login interface to untrusted networks and consider implementing web application firewall (WAF) rules to detect and block SQL injection attempts targeting the lastLogin cookie parameter.
CVE-2026-71231: CWE-89 SQL Injection in thebradleysanders IOTSmartHome
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. An unauthenticated attacker can set a lastLogin cookie containing a base64-encoded SQL injection payload (e.g. base64("' OR '1'='1")) to bypass authentication and, via UNION-based injection, extract arbitrary data including user credentials.
CVSS v3.1
Score 9.8critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The IOTSmartHome's gui/login.php checkCookie() function uses the client-supplied lastLogin cookie, which is base64-decoded without sanitization, to build an SQL query: SELECT * FROM users WHERE ID='<decoded lastLogin cookie>'. This allows an unauthenticated attacker to inject SQL code by crafting a base64-encoded payload (e.g., base64("' OR '1'='1")) in the lastLogin cookie. Exploitation can bypass authentication and perform UNION-based SQL injection to extract sensitive data including user credentials. The vulnerability is identified as CWE-89 (SQL Injection) and has a CVSS 3.1 score of 9.8, indicating critical severity.
Potential Impact
Successful exploitation allows an unauthenticated attacker to bypass authentication controls and extract arbitrary data from the backend database, including user credentials. This compromises confidentiality, integrity, and availability of the affected system, potentially leading to full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid exposing the vulnerable login interface to untrusted networks and consider implementing web application firewall (WAF) rules to detect and block SQL injection attempts targeting the lastLogin cookie parameter.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T10:53:53.175Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a731a7fbf8831d539c95c5b
Added to database: 08/05/2026, 11:11:59 UTC
Last enriched: 08/05/2026, 11:27:36 UTC
Last updated: 08/06/2026, 02:06:55 UTC
Views: 9
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.