Skip to content
Access control Write-up Advanced

A Bit of Context…

The RpcEptMapper service's registry key allowed low-privileged users to create a 'Performance' subkey, which could be used to load a malicious DLL into a SYSTEM process. An attacker could exploit this to escalate privileges to SYSTEM.

itm4n.github.io

Published on itm4n.github.io

If you have ever run this script on Windows 7 or Windows Server 2008 R2, you probably noticed a weird recurring…

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

Impact

An attacker could execute arbitrary code as SYSTEM, leading to full privilege escalation.

What the attacker needed

Low-privileged user account; Windows 7 or Server 2008 R2

How it was found

  1. Create the 'Performance' subkey under the RpcEptMapper service registry key.
  2. Set the 'Library' value to the path of a malicious DLL.
  3. Set the 'Open', 'Collect', and 'Close' values to the names of exported functions in the DLL.
  4. Trigger the service to load the DLL by querying WMI performance classes.

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.

Windows services run with high privileges. The permissions on the registry key for the RpcEptMapper service were too loose, letting any normal user add a special 'Performance' subkey. That subkey tells Windows to load a DLL, so an attacker could point it to their own DLL and have it run as SYSTEM.

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.