Skip to content
RCE Advisory Intermediate CVE-2017-2866

Circle with Disney Backup API Command Injection Vulnerability

The backup API handler passes the user-supplied appid parameter directly into a system command without sanitisation, allowing an authenticated attacker to inject arbitrary OS commands. Because of a separate weak authentication flaw, even unauthenticated attackers could reach this API.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Critical 9.9 View original

An exploitable vulnerability exists in the /api/CONFIG/backup functionality of Circle with Disney. Specially crafted network packets can cause an OS command injection.

Marcin 'Icewall' Noga, Cory Duplantis, Yves Younan, Claudio Bozzato, Lilith Wyatt <(^_^)>, Aleksandar Nikolic, and Richard Johnson Cisco Talos, 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

The appid GET parameter is concatenated into a command string passed to system() without any sanitisation or escaping.

Impact

An attacker could execute arbitrary OS commands on the device, with high confidentiality, integrity and availability impact, and the API was reachable by anyone due to a separate weak authentication flaw.

What the attacker needed

Network access to the device; a token parameter (weak auth bypass possible)

How it was found

  1. Send an HTTP request to the /api/CONFIG/backup endpoint with a token, api version and an appid parameter.
  2. Include shell metacharacters and a command in the appid value, using tabs instead of spaces to separate commands and parameters.
  3. The device executes the injected command.

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.

The device builds a shell command by gluing together a fixed script name and a value taken from the web request. Because it never checks that value, an attacker can add extra shell commands after it. The device then runs everything as if the attacker had typed it on a terminal.

What is RCE?

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

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.