Skip to content
Misconfiguration Write-up Beginner

How to Takover a ldap server.

An LDAP server on port 389 allowed anonymous binding, so directory contents including user accounts and identifiers could be read without credentials. The author then brute-forced passwords against the directory and obtained a valid user credential.

Ashish Kunwar Follow

Published on medium.com

As Usual i started my personal tool “BREXET” and it gathered lots of subdomains and ran nmap over every subdomain , i went through the output and found this interesting port 389 with anonymous bind enabled.

Ashish Kunwar, 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 the LDAP server was misconfigured to permit anonymous binds and unrestricted directory searches, exposing account details that enabled password guessing.

Impact

An attacker could read directory user details and, after password guessing, obtain valid LDAP credentials, potentially leading to further access.

What the attacker needed

Target exposes LDAP on port 389; anonymous bind enabled; weak user passwords

How it was found

  1. Find a host with port 389 open and anonymous bind enabled
  2. Query the base naming context with an anonymous LDAP search
  3. Enumerate users and their directory attributes using the discovered base
  4. Brute-force passwords against the LDAP service with nmap
  5. Log in with the recovered credential using an LDAP browser

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.

LDAP is a directory service, like a phone book for users and devices on a network. Anonymous bind means the server lets anyone connect and read the directory without a username or password. Here that let the author list user accounts and then guess passwords until one worked.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Ashish Kunwar

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.