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.
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.
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
- Enumerate the internal subnet with masscan to find live hosts and open ports.
- Use Nmap service detection and EyeWitness screenshots to identify web interfaces, including a printer login portal.
- Run Nuclei against the discovered URLs, which confirmed the printer model was vulnerable with LDAP authentication enabled.
- Execute a passback attack against the printer to capture valid credentials.
- Use the captured credentials to pivot laterally within the network.
- 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.