Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-71231: CWE-89 SQL Injection in thebradleysanders IOTSmartHome

0
Critical
Published: 08/05/2026 (08/05/2026, 12:31:30 UTC)
Source: CVE Database V5
Vendor/Project: thebradleysanders
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 11:27:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses