DEV Community

kozhevniko
kozhevniko

Posted on

Why a 2016 KGUARD DVR service is still handing out root to strangers

Why a 2016 KGUARD DVR service is still handing out root to strangers

Vulnerability overview

CVE-2026-87827 carries a CVSS v4 score of 10.0, the maximum the scale allows. It affects KGUARD DVR firmware and was first flagged by Netlab 360 during routine botnet tracking. The disclosure is unusual in one respect: the vulnerable behavior is not a coding mistake that a later release quietly corrects. It is an architectural choice, a network service that was written to trust every caller, and the fix required changing what address that service listens on.

Mechanism and exploitation conditions

Inside the firmware, one program opens a socket and waits for instructions. It binds to 0.0.0.0, which means it answers on every network interface the device has, including the one facing the internet when the recorder is placed directly on a public address. It then processes the request without asking who sent it.
Netlab 360's advisory states that the service can "remotely execute system commands without authentication." The practical effect is that anyone who can open a TCP connection to the right port can run commands as the device's own operating system user. No username, no password, no session cookie. The port number is deliberately absent from the public advisory, a decision the researchers made to avoid handing attackers a ready-made list of targets.
The 2017 firmware changed the bind address to 127.0.0.1. After that change, the service still runs, but only processes that are already on the device can reach it. Remote exploitation stops working entirely.

Impact

A DVR is a small computer with a network stack, a storage volume, and usually a permissive outbound firewall policy. Once an attacker has command execution, the recorder becomes whatever the attacker needs: a downloader for additional malware, a scanner for the next target, or a node in a denial-of-service swarm.
That last use has already happened at scale. Mirai_ptea, also known as Rimasuta, and Mirai_aurora both incorporated the exploit. They used it to spread their payloads and then to generate attack traffic. Some RapperBot variants picked up the same exploit and were still using it in 2026. The Mirai family has a long history of absorbing IoT flaws, and this one fits the pattern exactly: unauthenticated, remotely reachable, and present on devices that owners rarely update.

Affected products and scope

The affected firmware ships on recorders built in 2016. The model list is long and covers much of the KGUARD line: D1004NR, D1008NR, D1016NR, D1104, D1108NR, D1116NR, and the D99xx family. Netlab 360 put the number of exposed devices at 3,000 or more, a figure drawn from its own scanning rather than a vendor inventory.

Exposure context

ZoomEye recorded 864,518 assets matching app="KGUARD DVR" on 2026-09-16. The count describes devices whose fingerprint matches the product, not devices running the vulnerable 2016 build. Read it as a measure of how much of this hardware is reachable from the public internet, which is the precondition an attacker needs. Whether a specific unit is exploitable depends on its firmware date and on whether the vulnerable port is exposed.

Remediation and mitigations

Firmware released after 2017 removes the flaw by binding the service to loopback. Apply it if the vendor offers a build for the model in question.
If no update exists, the recorder should not be reachable from the internet. Put it behind a firewall, block inbound connections to its management port, and keep it on a network segment that does not contain servers or workstations. Outbound monitoring helps here as well, because an infected recorder will try to reach command-and-control hosts that a normal DVR never contacts.

References

Top comments (0)