Synology SRM lbd service Command Execution Vulnerability
The lbd debug service on Synology SRM accepts unauthenticated network messages and lets a caller redirect debug output to an arbitrary file path. An attacker could write controllable content into executable files and thereby run commands as root.
Originally disclosed on Cisco Talos
An exploitable command execution vulnerability exists in the lbd service functionality of Qualcomm lbd 1.1, as present in Synology SRM 1.2.3 RT2600ac 8017-5. A specially crafted debug command can overwrite arbitrary files with controllable content, resulting in remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the debug redirect feature accepts an arbitrary file path and writes attacker-influenced log content to it, without authentication or restricting where output may go.
Impact
An unauthenticated attacker on the LAN could execute arbitrary code as root, and the text says the service is also reachable from the QuickConnect network because of separate issues.
What the attacker needed
Network access to the lbd service port; no authentication needed
The fix
The vendor confirmed a patch, though the text does not describe what it changed.
How it was found
- Connect to the lbd service port on the router over the local network.
- Open the debug submenu and read its help to find the redirect option.
- Enable debug output redirection to a chosen file path.
- Cause debug messages with interpretable content to be written to an executable file.
- The written content is executed as root.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A router runs a small helper program that listens on the local network and lets anyone connect without a password. That program can be told to send its log messages into any file on the device, so a stranger can fill a file that the system later runs as a program. Because the helper runs with the highest privileges, the stranger's code runs as the router's administrator.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.