Privilege Escalation Through Named-Pipe Flaw
The SYSTEM-level process trusted any named pipe an attacker created and accepted a token supplied on it, so a local user could establish a WebSocket connection and perform system-level actions. This allowed privilege escalation from a normal user to SYSTEM.
This flaw was in the way the System-priveleged process authenticated and established the Websocket connection with the browser extension to perform the system-level actions restricted to the User-level user.
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 SYSTEM process authenticated the WebSocket token by reading it from a named pipe without verifying that the pipe was created by the trusted user-level helper.
What the attacker needed
Local access to the machine; ability to create a named pipe
How it was found
- Create a named pipe at a path of the attacker's choosing using a self-generated session identifier.
- Wait for the SYSTEM process to connect as a pipe client.
- Supply an attacker-chosen token on that pipe.
- Open a WebSocket connection to the SYSTEM process with the same token.
- Send system-level operation requests over the established WebSocket connection.
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.
A named pipe is a way for programs on the same computer to talk to each other. Here, a powerful background program (running as SYSTEM, the highest Windows account) accepted messages from any pipe, even one a normal user made. That let a normal user pretend to be the trusted helper and ask the powerful program to do sensitive things.
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.