Skip to content
Info disclosure Write-up Intermediate

Windows Network Provider DLL: Stealing Plaintext Credentials at Logon

A Windows feature that lets third-party DLLs plug into the logon process passes the plaintext password to those DLLs on every interactive logon. An attacker who already has administrator rights can register a malicious DLL that captures domain, username and password in clear text each time a user signs in.

S12 - 0x12Dark Development Follow

Published on medium.com

Welcome to this new Medium post, in this one we will see how Windows gives attackers a legitimate extensibility point to extract plaintext credentials on every interactive logon. The Network Provider API allows third party DLLs to register themselves into the Winlogon process.

S12 - 0x12Dark Development, on 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

Likely by design, the Network Provider API passes the plaintext interactive logon credentials to any registered provider DLL loaded into Winlogon, and registration only requires administrator rights.

Impact

An attacker with administrator rights could harvest plaintext domain, username and password on every interactive logon, though only password-based logons expose the password and other authentication types are skipped.

What the attacker needed

Administrator rights on the host; ability to write a DLL to System32; victim logs on interactively with a password

How it was found

  1. Copy the compiled DLL into System32 under a chosen name.
  2. Run the install script as administrator to create the service entry and add the provider to the load order.
  3. Restart the machine so Winlogon loads the provider.
  4. Log in interactively and check the log file for the captured credentials.

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 lets extra programs hook into the sign-in process so they can help with network logins. When you type your password, Windows hands it to those programs in readable form, not scrambled. Someone who already controls the machine as an administrator can install their own such program and quietly copy every password typed at sign-in.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by S12 - 0x12Dark Development

View all

13 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.