Skip to content
RCE Write-up Advanced

CVE-2020-8150 – Remote Code Execution as SYSTEM/root via Backblaze

The Backblaze client's update process disabled SSL certificate verification for certain URLs, allowing an attacker who can spoof DNS to serve a malicious update file. The attacker could then execute arbitrary code as SYSTEM on Windows or root on macOS.

Jason Geffner Follow

Published on github.com

BranchesTags

Jason Geffner (@JasonGeffner), on github.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The update download functions disabled SSL certificate verification when the URL contained certain strings, and the downloaded file was only checked for a magic string before execution.

Impact

An unprivileged anonymous remote attacker could perform remote code execution as SYSTEM on Windows or root on macOS.

What the attacker needed

Ability to spoof DNS for the data center hostname; victim runs vulnerable Backblaze client; attacker controls a server with a self-signed certificate

The fix

Backblaze patched the vulnerability in versions 7.0.1.433 (Windows) and 7.1.0.434 (macOS).

How it was found

  1. Spoof DNS to point the Backblaze data center hostname to the attacker's IP.
  2. Run a malicious HTTPS server with a self-signed certificate that serves a crafted XML file and a malicious executable.
  3. Wait for the victim's client to check for updates (every couple of hours) or force the check.
  4. The client downloads the XML, sees a newer version, downloads the executable, and runs it as SYSTEM/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 write-up has not been written yet. The Original tab links to the source.

Backblaze is a backup program that runs with high privileges. It regularly checks for updates by downloading a file from its servers. The program was tricked into accepting a fake server's certificate, so an attacker could pretend to be the update server and deliver a malicious file that the program would run with full system rights.

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 Backblaze

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.