Skip to content
Access control Write-up Advanced

From Standard User to SYSTEM: Hunting BrokenPipe (Steam LPE)

Steam's SYSTEM-level service validated the signature of a VDF install script but trusted the caller-supplied installation root path without checking it. A standard user could therefore point the service at a folder they control and have it launch an attacker-placed executable as SYSTEM.

Saksham Bhattarai Follow

Published on saksham-17.medium.com

BrokenPipe is a local privilege escalation flaw in Steam where a standard Windows user can abuse steamservice.exe, which runs as SYSTEM, to execute an attacker-controlled binary with SYSTEM privileges. The root cause is simple: Steam validates the signed VDF contents, but not the execution path supplied by the caller.

Saksham Bhattarai, on saksham-17.medium.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 service validated the signed VDF contents but trusted the caller-supplied installation root path, so a privileged process executed a binary from a user-writable directory.

Impact

A standard user could obtain an interactive SYSTEM shell within seconds, with no UAC prompt or password, and the Windows Security log showed no obvious new logon or escalation event.

What the attacker needed

Local access as a standard user; Steam installed and running; no Steam account needed

The fix

The service should validate or restrict the caller-supplied installation root, for example by requiring it to sit under a trusted Steam directory, rather than trusting it blindly.

How it was found

  1. Run the exploit executable as a standard, non-administrative user.
  2. The executable starts PowerShell, which unpacks the payload and writes the signed manifest, the run script and a renamed copy of the command prompt into a public, user-writable folder.
  3. PowerShell opens a shared-memory IPC channel to the Steam service and sends a whitelist request containing the signed manifest and the attacker-chosen installation root.
  4. The service accepts the signature and the unvalidated root, then reads files from that directory.
  5. The service launches the renamed command prompt as SYSTEM, which in turn starts a SYSTEM command shell.

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.

Some programs run background services with the highest Windows privileges so they can install and update software. This service checked that the install script was genuinely signed by Valve, but it did not check where the script said the files lived. A normal user could say 'the files are in my own folder', drop a renamed command prompt there, and the service started it with full system rights.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.