# CVE-2026-71231: IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie

- Severity: Critical 9.8 (CVSS:3.1, scored by TuranSec) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-08-05T10:56:07.066Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: TuranSec

## 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.

(As written by CVE List.)

## Affected

- thebradleysanders IOTSmartHome: 0

## References

- <https://github.com/thebradleysanders/IOTSmartHome> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-71231](https://www.cve.org/CVERecord?id=CVE-2026-71231), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-71231](https://nvd.nist.gov/vuln/detail/CVE-2026-71231), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71231 · Whole record: https://cve.day/CVE-2026-71231.json · Rebuilt by cve.day 2026-11-25T22:59:31.091Z
