Skip to main content

IOTSmartHome EUVDEUVD-2026-53304

| CVE-2026-71231 CRITICAL
SQL Injection (CWE-89)
2026-08-05 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-hchq-288f-9hjc
9.8
CVSS 3.1 · Vendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach IOTSmartHome login endpoint
  2. Delivery
    Set lastLogin cookie with base64 SQLi payload
  3. Exploit
    safe_decode concatenates into SQL query
  4. Execution
    Tautology bypasses authentication
  5. Persist
    UNION SELECT extracts users table
  6. Impact
    Exfiltrate credentials and hashes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires only that the IOTSmartHome GUI login endpoint (gui/login.php) be network-reachable by the attacker; the checkCookie() code path is exercised whenever a lastLogin cookie is present, so no special product feature, non-default setting, authentication, or user interaction is needed. The concrete prerequisite is the ability to send an HTTP request with an attacker-chosen lastLogin cookie containing a URL-safe base64-encoded SQL payload. Limiting factors are practical rather than configurational: the attacker must be able to reach the login page (instances bound to localhost or behind network restrictions are not remotely exploitable), and successful UNION extraction depends on knowing/inferring the users table structure, though authentication bypass via a tautology needs no such knowledge.

Impact

The provided CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (base 9.8, Critical) is internally consistent with the description: the injection point is a cookie sent over the network, requires no authentication (PR:N) or user interaction, and yields full read access to credentials plus authentication bypass. There is no EPSS score, KEV listing, or SSVC decision data in the input, so exploitation probability cannot be quantified from external signals - the risk assessment here rests on the vulnerability class and CVSS alone. The A:H (availability) rating is somewhat generous for a read/auth-bypass primitive; while UNION-based extraction is confirmed, destructive or DoS impact is not explicitly described, so A:H should be treated as an upper bound rather than confirmed. My independent judgment is that the confidentiality and integrity (auth bypass) impacts are the real drivers. The dominant uncertainty is deployment footprint: IOTSmartHome appears to be a small/hobby project, so despite the Critical score, real-world exposure is likely limited to a small number of self-hosted instances.

Exploit ScenarioDerived

An attacker who can reach the IOTSmartHome login page sets a lastLogin cookie to the URL-safe base64 encoding of a payload such as ' OR '1'='1 to satisfy the WHERE clause and bypass authentication, gaining an authenticated session. Escalating to a UNION-based SELECT, the attacker then extracts the full users table - usernames and password hashes - directly through the same cookie. No public POC is referenced, but the payload is trivial to construct from the description.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Authentication bypass and data exfiltration in IOTSmartHome's login component allow an unauthenticated attacker to submit a base64-encoded SQL injection payload via the lastLogin cookie, defeating login checks and reading arbitrary database contents including user credentials. The checkCookie() function in gui/login.php decodes the client-supplied cookie with URL-safe base64 (safe_decode()) and concatenates the result directly into a SQL query without sanitization. No public exploit is identified at time of analysis, but the trivial injection path (base64("' OR '1'='1")) and network reachability make weaponization straightforward.

RemediationAI

No vendor-released patch or fixed version is identified at time of analysis. The primary fix is to rewrite checkCookie() to use parameterized queries / prepared statements (e.g. PDO or mysqli bound parameters) so the decoded cookie value is never concatenated into SQL - this fully closes the injection regardless of encoding. As interim compensating controls for self-hosted operators: restrict network access to the login/GUI endpoint (bind to localhost or place behind a VPN/reverse proxy with IP allowlisting), which prevents remote exploitation but breaks legitimate remote access; deploy a WAF rule to inspect the decoded lastLogin cookie for SQL metacharacters and UNION/OR patterns, accepting that base64 encoding and WAF-evasion tricks can bypass naive signatures; and validate that safe_decode() output matches an expected format (e.g. numeric ID) before it reaches the query, rejecting anything containing quotes or SQL keywords. Monitor the repository at https://github.com/thebradleysanders/IOTSmartHome for an upstream fix.

Affected VersionsENISA

IOTSmartHome 0

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code is a PHP web GUI (gui/login.php) backed by a SQL database with a users table keyed on an ID column. The vulnerability is a classic CWE-89 SQL Injection: the checkCookie() routine builds SELECT * FROM users WHERE ID='<value>' where <value> is the base64-decoded lastLogin cookie. Because safe_decode() only reverses URL-safe base64 encoding and applies no escaping, parameterization, or input validation, attacker-controlled SQL metacharacters (quotes, UNION, comments) survive into the query string. The base64 layer is not a security control - it is merely a transport encoding, and it conveniently lets an attacker smuggle characters that might otherwise be filtered or mangled in transit. Reference: the GitHub project at https://github.com/thebradleysanders/IOTSmartHome.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.1 CRITICAL

Network-reachable cookie injection, no auth or interaction (AV:N/AC:L/PR:N/UI:N); full credential read and auth bypass give C:H/I:H, but no described availability impact so A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).

CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

IOTSmartHome's login component contains a critical SQL injection vulnerability enabling unauthenticated attackers to bypass authentication and exfiltrate all database contents, including user credentials, via a modified lastLogin cookie. No public exploit code has been identified, but the attack is trivial to execute. Organizations running IOTSmartHome face immediate risk of account takeover and wholesale credential compromise affecting all user accounts.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy WAF with rules blocking SQL metacharacters and escape sequences in all cookie values; (2) Restrict IOTSmartHome login endpoints to trusted IP ranges via network firewall rules; (3) Implement parameterized queries or prepared statements in checkCookie() function as urgent developer remediation; (4) Disable lastLogin cookie-based authentication path entirely; (5) Enable database query logging and real-time alerting for queries matching injection patterns; (6) Require multi-factor authentication on all IOTSmartHome user accounts as compensating authentication layer.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Rare
small hobby/personal GitHub smart-home project, negligible enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy