Skip to content
Access control Write-up Advanced

Turning Enterprise Update Servers Into Backdoor Factories (0_o) – Part 1

The WSUS computer account can be coerced to authenticate to an attacker, then relayed to the WSUS database server, granting a SQL session. With this access, an attacker can create and deploy malicious updates to targeted computers using stored procedures.

Beyviel David Follow

Published on specterops.io

Part 2 can be found here.

Beyviel David, on specterops.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 WSUS computer account has excessive privileges on the database server, allowing it to execute stored procedures that can create and deploy updates.

Impact

An attacker could deploy arbitrary updates to targeted computers, potentially leading to lateral movement and compromise of those systems.

What the attacker needed

WSUS database on a separate server; Ability to coerce authentication; Network access to relay

The fix

The WSUS computer account should be granted only the minimum necessary permissions on the database server, and authentication coercion should be mitigated.

How it was found

  1. Coerce the upstream WSUS server to authenticate to the attacker machine over SMB.
  2. Relay the authentication to the WSUS database server to obtain a SQL session.
  3. Use stored procedures to import a malicious update, save XML fragments, set a download URL, create a target group, add a target computer, and deploy the update.

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.

WSUS is a Microsoft tool that helps companies manage Windows updates. The researcher found that a computer account used by WSUS could be tricked into logging in to a database server, and that login gave enough power to create fake updates that install malware on chosen computers.

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.

More by Beyviel David

View all

1 more disclosed report, best first.

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.