Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess LAN-adjacent MQTT broker (unauthenticated)
-
DeliveryPublish SetChannelLabel with <script> payload
-
ExploitCHANNEL_SetLabel() stores payload unsanitized via strdup()
-
ExecutionVictim opens device web management panel
-
Persisthprintf255() renders stored label without HTML encoding
-
ImpactScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
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.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Openbk7231T App
View allCross-site request forgery in OpenBK7231T firmware's /cfg_wifi_set endpoint allows a remote attacker to simultaneously h
Reflected XSS in OpenBK7231T firmware's OTA update endpoint exposes authenticated admins to JavaScript injection via a c
EUVD-2026-53359
GHSA-9c86-c5c2-55cr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB