Skip to content
RCE Write-up Advanced

General Discovery

HP Support Assistant's local WCF service exposed privileged install methods that trusted attacker-controlled fields, letting an unprivileged local user place a malicious binary or DLL in a writable temp directory and have it run as SYSTEM. The report also describes a remote code execution issue, though the excerpt cuts off before its details.

d4stiny.github.io

Published on d4stiny.github.io

I always have considered bloatware a unique attack surface. Instead of the vulnerability being introduced by the operating system, it is introduced by the manufacturer that you bought your machine from.

The author, on d4stiny.github.io

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 service trusted client-supplied action properties and writable temp paths, checking only file signatures and existence rather than the actual file being executed.

Impact

A local unprivileged attacker could escalate to SYSTEM on affected HP machines, and the report claims a remote code execution issue as well.

What the attacker needed

Local access to the machine; ability to write to Windows temp; HP Support Assistant installed

How it was found

  1. Place a signed HP binary named Extract.exe in the Windows temp directory, padded to the expected size.
  2. Call the silent install method with a silent install string that avoids the package name.
  3. The service starts the temp binary as SYSTEM.
  4. For the second flaw, create a swsetup folder chain and pass an executable name matching a signed temp binary.
  5. Wait for the service to delete the folder, then recreate it with a malicious binary.
  6. The malicious binary runs with SYSTEM 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.

Many laptops ship with helper software from the manufacturer that runs a background service with high privileges. This service accepted instructions from ordinary programs on the same machine and trusted details the program supplied, so a low-privileged user could trick it into running their own code 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.

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.