Skip to main content

OpenBK7231T EUVDEUVD-2026-53359

| CVE-2026-71274 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-05 TuranSec GHSA-9c86-c5c2-55cr
8.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access LAN-adjacent MQTT broker (unauthenticated)
  2. Delivery
    Publish SetChannelLabel with <script> payload
  3. Exploit
    CHANNEL_SetLabel() stores payload unsanitized via strdup()
  4. Execution
    Victim opens device web management panel
  5. Persist
    hprintf255() renders stored label without HTML encoding
  6. Impact
    Script executes in victim's browser context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two concrete conditions must be satisfied for exploitation: (1) the attacker must reach the MQTT broker serving the target OpenBK7231T device - in typical home deployments this broker is LAN-local and unauthenticated, consistent with the CVSS PR:N metric, meaning any device on the same Wi-Fi or LAN segment qualifies; and (2) a user must actively navigate to the device's built-in HTTP web panel after the malicious label has been stored, consistent with CVSS UI:R. No special device configuration, non-default feature flag, or elevated privilege is required beyond the MQTT service and web panel being active, both of which are default in OpenBK7231T firmware. Exploitation is bounded by the adjacent-network vector (AV:A): an internet-based attacker cannot exploit this without first gaining LAN access or reaching an internet-exposed MQTT broker. In shared environments - co-living spaces, maker spaces, or deployments using a shared MQTT broker - the realistic attacker population expands significantly. The attack does not require repeated access; a single label injection persists and fires for all subsequent web panel visitors.

Impact

The CVSS 3.1 base score of 8.5 reflects a well-characterized threat profile: AV:A constrains exploitation to the adjacent network (MQTT broker reach required), AC:L indicates no special techniques beyond that initial access, PR:N confirms no MQTT credentials are assumed, UI:R captures the requirement that a victim must open the web panel, and S:C with C:H/I:H reflects the XSS crossing the device security boundary into the browser, enabling session hijacking and arbitrary web-panel manipulation. No EPSS score was included in the provided data, so exploitation probability cannot be quantified from that signal. No CISA KEV listing and no public POC have been identified at time of analysis - exploitation status is unknown but not confirmed active. The critical real-world risk amplifier is deployment practice: a large fraction of OpenBK7231T users run their MQTT brokers without authentication on their home LAN, making PR:N at AV:A practically equivalent to a broader unauthenticated attack for anyone on the same network segment. Because this is stored XSS, a single successful injection persists and fires for all future web panel visitors without any re-exploitation step, multiplying the impact of a one-time attacker action. The primary limiting factor remains the adjacent-network vector - exploitability drops sharply when MQTT is properly authenticated and the web panel is restricted to trusted hosts.

Exploit ScenarioDerived

An attacker on the same LAN as a target device connects to the home MQTT broker - which requires no credentials in many residential deployments - using a standard MQTT client such as mosquitto_pub and publishes a SetChannelLabel message with a payload embedding a script tag (e.g., a cookie-exfiltrating redirect). The label is written to device memory via strdup() and persists across reboots. When the device owner later opens the firmware's web panel to monitor device status or adjust settings, the browser fetches a page where hprintf255() renders the unescaped label, executing the attacker's script in the owner's browser session. No public exploit code has been identified at time of analysis, but the attack requires only commodity MQTT tooling and knowledge of the SetChannelLabel command format.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Stored XSS in OpenBK7231T firmware allows an adjacent-network attacker with MQTT broker access - commonly unauthenticated in real IoT deployments - to inject persistent JavaScript payloads into device channel labels via the SetChannelLabel MQTT command. The malicious label survives device reboots in memory and executes in the browser of every user who subsequently views the device's built-in web management panel, with high confidentiality and integrity impact in a changed scope. No public exploit has been identified at time of analysis, but the unauthenticated MQTT broker pattern common in home automation environments effectively lowers the practical exploitation barrier below what the AV:A vector alone implies.

RemediationAI

No patched release version has been independently confirmed from the available reference data; the sole reference points to the upstream GitHub repository at https://github.com/openshwprojects/OpenBK7231T_App, which should be monitored for a commit or tagged release introducing HTML sanitization in CHANNEL_SetLabel() and output encoding in the hprintf255() render paths across src/httpserver/http_fns.c. The highest-impact interim mitigation is enabling authentication on the MQTT broker (e.g., username/password or TLS mutual authentication in Mosquitto via the password_file and cafile directives), which directly eliminates the PR:N attack surface at the cost of requiring credential management for all MQTT clients. Additionally, restrict the device's web panel to trusted LAN hosts via firewall or router ACLs, preventing an attacker from leveraging a successfully injected payload even if the MQTT layer is compromised. If the web panel is not operationally required, disabling it entirely removes the UI:R attack surface completely, with the trade-off of losing local web-based device management. Internet-exposure of the MQTT broker must be avoided in any deployment of this firmware.

Affected VersionsENISA

OpenBK7231T_App 0 ≤*

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

OpenBK7231T is an open-source alternative firmware for Beken BK7231T microcontrollers used in consumer smart-home devices such as smart plugs, bulbs, and switches, maintained under the OpenShwProjects organization (CPE: cpe:2.3:a:openshwprojects:openbk7231t_app:*:*:*:*:*:*:*:*). The vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS). The attack path begins in src/cmnds/cmd_channels.c, where CHANNEL_SetLabel() receives channel label strings delivered via the MQTT SetChannelLabel command and stores them with strdup(), applying no HTML sanitization at ingestion time. CHANNEL_GetLabel() later returns these stored strings without any encoding step, and hprintf255() - the firmware's HTTP response formatting function in src/httpserver/http_fns.c - renders them verbatim at 15 or more distinct locations in the web panel. MQTT, the lightweight publish-subscribe messaging protocol central to this vulnerability, is routinely deployed without broker-level authentication in home automation environments, making PR:N a realistic baseline assumption rather than a worst-case one.

Know when Openbk7231T App 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

Vendor (TuranSec) PRIMARY 8.5 HIGH
AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.5 HIGH

AV:A because MQTT broker access is adjacent-network; PR:N because MQTT is unauthenticated in typical deployments per the description; S:C and C:H/I:H because XSS crosses device boundary into the browser, enabling session theft and panel manipulation; A:N because no availability impact is described.

3.1 AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:A/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

OpenBK7231T's CHANNEL_SetLabel() (src/cmnds/cmd_channels.c) stores channel labels received via the MQTT SetChannelLabel command using strdup() with no HTML sanitization. CHANNEL_GetLabel() returns these labels unsanitized, and they are rendered via hprintf255() at 15+ locations in src/httpserver/http_fns.c with no HTML encoding. An attacker with MQTT broker access (commonly unauthenticated in real deployments) can set a channel label containing a <script> payload that executes when any user views the device's web panel.

Executive ViewAI

Why It Matters

OpenBK7231T firmware contains a stored cross-site scripting vulnerability in the web management panel that allows adjacent-network attackers to inject persistent malicious JavaScript through MQTT commands. All users viewing the affected device's web interface are at risk; no patch is currently available, making immediate network isolation and access controls critical for protecting IoT infrastructure.

Business Impact: High
Compensating Controls

Implement network segmentation to isolate MQTT brokers to trusted devices only. Require MQTT broker authentication with strong credentials. Disable MQTT service if not required for operations. Monitor MQTT traffic for SetChannelLabel commands with suspicious payloads. Restrict web management panel access to trusted administrative networks via firewall rules. Implement Content Security Policy headers in the web interface where supported. Conduct regular audits of device configuration and user access logs for anomalies.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche open-source IoT firmware with DIY and hobbyist deployment only
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy