Skip to content
RCE Write-up Advanced

One-Click RCE in ASUS’s Preinstalled Driver Software

ASUS DriverHub's local RPC service checked the Origin header with a substring match, so any domain containing 'driverhub.asus.com' could call it. An attacker could then use the UpdateApp endpoint to download files and execute a signed ASUS installer that ran an arbitrary command from a malicious INI file, achieving remote code execution with admin privileges.

mrbruh.com

Published on mrbruh.com

Part Two of the ASUS series is out, read it here.

The author, on mrbruh.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

Likely the Origin header was validated with a substring match rather than an exact match, and the UpdateApp endpoint's URL check was similarly weak, allowing a signed installer to load a malicious configuration file.

Impact

An attacker could execute arbitrary code with admin permissions on any computer running DriverHub, but the exploit required the user to visit a malicious website and the attacker to control a domain matching the weak check.

What the attacker needed

DriverHub installed; Victim visits attacker-controlled site; Attacker controls a domain containing driverhub.asus.com

The fix

The text states ASUS patched the software and confirmed the fix was live.

How it was found

  1. Visit a website whose domain contains driverhub.asus.com as a prefix.
  2. The site sends an UpdateApp request to download a proof-of-concept executable, which fails the signature check and is not executed.
  3. The site sends an UpdateApp request to download a custom AsusSetup.ini file containing a SilentInstallRun entry.
  4. The site sends an UpdateApp request for the signed ASUS AsusSetup.exe, which is downloaded and executed with admin permissions.
  5. AsusSetup.exe runs with the -s flag, reads the malicious INI, and executes the command specified in SilentInstallRun with admin permissions.

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.

DriverHub is a background program that listens on a local port and only accepts commands from its own website. The check for the website's address was too loose: it accepted any address that merely contained the expected text. This let a malicious website send commands to the program, including one that downloads and runs files, leading to code execution on the computer.

What is RCE?

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

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.