D-Link M60 MQTT Broker Hard-Coded Credentials Vulnerability (CVE-2026-125086)
Overview
The D-Link M60 appliance version 1.12.B01 contains a flaw in the emDaemon MQTT broker component. By modifying the /etc/emDaemon/mosquitto.conf file, an attacker can insert hard-coded credentials that enable unauthorized access. The vulnerability is exploitable remotely and has a CVSS score of 10.0.
Technical Details
The weakness resides in the system function that handles the mosquitto.conf file of the emDaemon MQTT broker. An attacker who can send crafted MQTT messages to the broker can alter this configuration file, injecting hard-coded authentication data. No authentication bypass is required beyond normal MQTT communication, and the flaw is present in the default configuration shipped with D-Link M60 1.12.B01.
Impact
Successful exploitation grants an attacker valid MQTT credentials, allowing unrestricted access to the broker and potentially to other services on the device. This can lead to data theft, device takeover, or lateral movement within the network. All deployments of D-Link M60 1.12.B01 are exposed.
Recommended Actions
- Check the vendor advisory for a patch and apply it as soon as it is available.
- Restrict network access to the MQTT broker to trusted hosts and networks only.
- Disable the emDaemon MQTT broker if it is not required for operations.
- Monitor for unexpected changes to /etc/emDaemon/mosquitto.conf and alert on modifications.
Detection
Review emDaemon and MQTT broker logs for configuration change events or unusual connection attempts from unauthorized IP addresses. Correlate timestamps of mosquitto.conf edits with login activity. Enable file integrity monitoring on /etc/emDaemon/mosquitto.conf to detect unauthorized modifications.