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.
AI Analysis
Technical Summary
The vulnerability arises because the checkCookie function in IOTSmartHome's gui/login.php decodes a client-supplied lastLogin cookie using a URL-safe base64 decode function (safe_decode) and then directly concatenates the decoded value into an SQL query string without any sanitization or parameterization. This leads to a classic SQL Injection (CWE-89) vulnerability, enabling an attacker to manipulate the SQL query executed against the users database. The CVSS 3.1 vector indicates the attack can be performed remotely without privileges or user interaction, with critical impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation of this vulnerability could allow an unauthenticated remote attacker to execute arbitrary SQL commands on the backend database. This can lead to unauthorized data disclosure, data modification, or deletion, and potentially full system compromise depending on the database and application context.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, it is recommended to avoid using vulnerable versions or apply application-level mitigations such as input validation, parameterized queries, or web application firewalls that can detect and block SQL injection attempts.
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.
CVSS v3.1
Score 9.8critical
Affected software
thebradleysanders
IOTSmartHome
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the checkCookie function in IOTSmartHome's gui/login.php decodes a client-supplied lastLogin cookie using a URL-safe base64 decode function (safe_decode) and then directly concatenates the decoded value into an SQL query string without any sanitization or parameterization. This leads to a classic SQL Injection (CWE-89) vulnerability, enabling an attacker to manipulate the SQL query executed against the users database. The CVSS 3.1 vector indicates the attack can be performed remotely without privileges or user interaction, with critical impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation of this vulnerability could allow an unauthenticated remote attacker to execute arbitrary SQL commands on the backend database. This can lead to unauthorized data disclosure, data modification, or deletion, and potentially full system compromise depending on the database and application context.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, it is recommended to avoid using vulnerable versions or apply application-level mitigations such as input validation, parameterized queries, or web application firewalls that can detect and block SQL injection attempts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T10:53:53.175Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a731a7fbf8831d539c95c5b
Added to database: 08/05/2026, 11:11:59 UTC
Last enriched: 08/12/2026, 14:27:05 UTC
Last updated: 09/18/2026, 10:01:33 UTC
Views: 38
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.