Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach IOTSmartHome login endpoint
-
DeliverySet lastLogin cookie with base64 SQLi payload
-
Exploitsafe_decode concatenates into SQL query
-
ExecutionTautology bypasses authentication
-
PersistUNION SELECT extracts users table
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-53304
GHSA-hchq-288f-9hjc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB