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.
Originally disclosed on Cisco Talos
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.
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
- The smartphone app sends an encrypted and signed file via the HTTP method /api/update_setup.
- The device verifies the archive and triggers the script install_full_ws which extracts new files.
- The setup process fetches an updated firmware from remote servers.
- The device calls /api/download_image, which invokes the download_image function.
- The function gets the image URL via get_image_url(), which calls the charon binary to talk to nimbus servers.
- 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.