Tooluck logoTooluck
SKILL.md

hunt-ldap

Agent skill fromelementalsouls/Claude-BugHunter

Hunt LDAP Injection and XPath Injection — authentication bypass, blind char-by-char attribute exfiltration, AD user/group enumeration, XML-store XPath bypass. Covers the LDAP special-character set (* ( ) \\ NUL /), search-filter-context vs DN-injection, parenthesis-balancing, AND/OR filter logic, and {SSHA}/{CRYPT} userPassword exfil on non-AD directories. Use when target uses LDAP/AD authentication, corporate SSO with a directory backend, an address-book/people-search API, or XML-based data stores queried with XPath.

How to install hunt-ldap

install hunt-ldap
# install the Claude-BugHunter pack with the skills CLI
npx skills add elementalsouls/Claude-BugHunter

# or add only this skill to Claude Code: copy the folder

skills/hunt-ldap/

# into

~/.claude/skills/hunt-ldap/ (all projects)

.claude/skills/hunt-ldap/ (one project)

skills/hunt-ldap/SKILL.md

MITFull file
1# HUNT-LDAP — LDAP Injection & XPath Injection
2
3> Grounding note: LDAP injection is rarely disclosed with verbatim payloads on
4> public platforms (most live on internal-pentest reports). This skill is
5> grounded in the **OWASP LDAP Injection Prevention / Testing Guide
6> (WSTG-INPV-06)**, **PortSwigger Web Security Academy (LDAP injection)**, and
7> the **RFC 4515** filter grammar — all publicly verifiable references rather
8> than invented HackerOne IDs. Do not cite a report you cannot link.
9
10## Crown Jewel Targets
11
12LDAP injection that bypasses authentication = **Critical**. Blind attribute
13exfiltration of credentials/secrets = **High**. AD enumeration alone = Medium-High.
14
15**Highest-value chains:**
16- **LDAP auth bypass** — close the `uid` filter and append an always-true OR so the
17 bind/search returns the admin entry without a valid password.
18- **Blind attribute exfil** — char-by-char extraction of an attribute value via a
19 boolean oracle (login success/failure, result count, or response length).
20- **userPassword hash exfil (non-AD only)** — on OpenLDAP/389-DS the
21 `userPassword` attribute can hold `{SSHA}`/`{CRYPT}` hashes that ARE readable
22 by query. See the AD-vs-generic warning below.
23- **XPath injection auth bypass** — `' or '1'='1` against XML-backed auth.
24
25---
26
27## CRITICAL — Active Directory vs generic LDAP
28
29Do **not** conflate the two. They behave very differently:
30
31| | Generic LDAP (OpenLDAP, 389-DS, ApacheDS) | Active Directory |
32|---|---|---|
33…

Excerpt shown under the repository's MIT license.

More skills in Claude-BugHunter

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates