Skip to content
RCE Advisory Advanced CVE-2019-17095CVE-2019-17096

Bitdefender BOX 2 bootstrap download_image command injection vulnerability

The Bitdefender BOX 2 bootstrap firmware download routine passes a URL from a remote server directly into shell commands without validation. An attacker who can impersonate the remote server could inject commands that run as root on the device.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable command injection vulnerability exists in the bootstrap stage of Bitdefender BOX 2, versions 2.1.47.42 and 2.1.53.45. The API method /api/downloadimage unsafely handles the production firmware URL supplied by remote servers, leading to arbitrary execution of system commands.

Claudio Bozzato, Lilith Wyatt and Dave McDaniel, 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

Impact

An attacker able to impersonate a nimbus server could execute arbitrary commands as root on the device, potentially installing unverified firmware.

What the attacker needed

Attacker can impersonate nimbus servers; device in bootstrap stage

How it was found

  1. The smartphone app sends an encrypted and signed file via the HTTP method /api/update_setup.
  2. The device verifies the archive and triggers the script install_full_ws which extracts new files.
  3. The setup process fetches an updated firmware from remote servers.
  4. The device calls /api/download_image, which invokes the download_image function.
  5. The function gets the image URL via get_image_url(), which calls the charon binary to talk to nimbus servers.
  6. The URL is used in a curl command via execute_command, allowing command injection.

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 asks a remote server for a web address to download new firmware. It then uses that address in a system command without checking it. If an attacker controls the server's answer, they can add extra commands that the device will run with full privileges.

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.