Skip to content
RCE Advisory Advanced CVE-2020-27654CVE-2020-11117

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.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Critical 9.6 View original

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.

Claudio Bozzato, on Cisco Talos

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

  1. Connect to the lbd service port on the router over the local network.
  2. Open the debug submenu and read its help to find the redirect option.
  3. Enable debug output redirection to a chosen file path.
  4. Cause debug messages with interpretable content to be written to an executable file.
  5. 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.

More by Claudio Bozzato

View all

185 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.