Skip to content
Heist/ feed
Back to feed
Critical

IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie

Type: advisorySources: OSV

IOTSmartHome's gui/login.php checkCookie function builds an authentication query as SELECT * FROM users WHERE ID='' 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-71231
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:08 UTC · Revision 1

Source evidence

IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie

core-osv · Original source

Published 5 Aug 2026, 10:56 UTC

IOTSmartHome's gui/login.php checkCookie function builds an authentication query as SELECT * FROM users WHERE ID='' 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.

osv:CVE-2026-71231
Complete source record
{
  "id": "ba7d740f4161a62cef0342e55bb0dee28cc15c83317f9905c90db6e2ff5f5b0b",
  "url": "https://osv.dev/vulnerability/CVE-2026-71231",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "IOTSmartHome - Unauthenticated SQL Injection via lastLogin Cookie",
    "summary": "IOTSmartHome's gui/login.php checkCookie function builds an authentication query as SELECT * FROM users WHERE ID='' 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.",
    "evidence": "osv:CVE-2026-71231",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-71231",
      "aliases": [
        "CVE-2026-71231"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/thebradleysanders/iotsmarthome",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71231.json"
          }
        }
      ],
      "modified": "2026-10-27T02:47:45.897801516Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71231.json",
        "https://github.com/thebradleysanders/IOTSmartHome",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-71231"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "TuranSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71231.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-71231",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 459869,
  "published_at": "2026-08-05T10:56:07.066+00:00"
}