IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| thebradleysanders | IOTSmartHome | unknown |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Thebradleysanders | Iotsmarthome |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.665% probability within 30 days)
| Link | Providers |
|---|---|
| https://github.com/thebradleysanders/IOTSmartHome |
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | 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. |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | IOTSmartHome: Unauthenticated SQL Injection via lastLogin Cookie | IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Thebradleysanders
Thebradleysanders iotsmarthome |
|
| Vendors & Products |
Thebradleysanders
Thebradleysanders iotsmarthome |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | IOTSmartHome: Unauthenticated SQL Injection via lastLogin Cookie | |
| Weaknesses | CWE-89 | |
| References |
| |
| Metrics |
cvssV3_1
|