Skip to content
Account takeover Write-up Advanced

Mapping The Forgotten Corners Of The Network

During an internal network penetration test, the team discovered an LDAP-enabled printer with a login portal. They used a passback attack to capture valid credentials, then pivoted laterally and extracted hashes from a Domain Controller via unrestricted delegation.

R. Eric Kiser Follow

Published on infosecwriteups.com

The pentesting team was dropped into an internal subnet with Kali, some intel but no asset inventory. Our directive was to act as a internal threat, map the attack surface, and exploit any discovered vulnerabilities.

R. Eric Kiser, on infosecwriteups.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 the printer's LDAP authentication was misconfigured to allow an attacker to redirect authentication requests to a server they controlled, enabling credential capture.

Impact

The attacker could capture valid credentials and use them to move laterally, ultimately extracting hashes from a Domain Controller via unrestricted delegation.

What the attacker needed

Internal network access; printer with LDAP authentication enabled; attacker can redirect authentication to own server

How it was found

  1. Enumerate the internal subnet with masscan to find live hosts and open ports.
  2. Use Nmap service detection and EyeWitness screenshots to identify web interfaces, including a printer login portal.
  3. Run Nuclei against the discovered URLs, which confirmed the printer model was vulnerable with LDAP authentication enabled.
  4. Execute a passback attack against the printer to capture valid credentials.
  5. Use the captured credentials to pivot laterally within the network.
  6. Extract hashes from the Domain Controller via unrestricted delegation.

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 passback attack tricks a device into sending login credentials to an attacker-controlled server instead of the legitimate one. Here, an internal printer with LDAP authentication was configured to send credentials to an attacker, who captured them and used them to access more systems, eventually reaching a Domain Controller (a central authentication server for Windows networks).

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by R. Eric Kiser

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.