---
id: CVE-2026-71231
title: >-
  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-…
summary: >-
  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-…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
published: '2026-08-05'
updated: '2026-08-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71231'
references:
  - url: 'https://github.com/thebradleysanders/IOTSmartHome'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
tags:
  - nvd
epss: 0.00665
epssPercentile: 0.49753
ingestedAt: '2026-08-10T12:39:48.672Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
