[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F7GKNRV97654B2R4QD1ZP1":3,"skill-same:01M6F7GKNRV97654B2R4QD1ZP1":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":31,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M6F7GKNRV97654B2R4QD1ZP1","hunt-ldap",null,"Hunt LDAP Injection and XPath Injection","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-hunt-ldap\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"hunt ldap","ldap","hunt","community","2026","xpath injection","for","relevant","helper","offensive","scripts","scope","commands","main","testing","only","injection","Tools","owasp","license","testing tools","security","github","2026-11-10 10:12:30",false,"---\nname: hunt-ldap\ndescription: Hunt LDAP Injection and XPath Injection\ncategory: security\nrisk: offensive\nsource: https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\nsource_repo: elementalsouls\u002FClaude-BugHunter\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires explicit written authorization for a target scope plus the\n  relevant testing tools for this technique. Docs-only; helper scripts and commands\n  not bundled.\nsources: hackerone_public, owasp, portswigger\nreport_count: 0\n---\n> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# HUNT-LDAP — LDAP Injection & XPath Injection\n\n> Grounding note: LDAP injection is rarely disclosed with verbatim payloads on\n> public platforms (most live on internal-pentest reports). This skill is\n> grounded in the **OWASP LDAP Injection Prevention \u002F Testing Guide\n> (WSTG-INPV-06)**, **PortSwigger Web Security Academy (LDAP injection)**, and\n> the **RFC 4515** filter grammar — all publicly verifiable references rather\n> than invented HackerOne IDs. Do not cite a report you cannot link.\n\n## Crown Jewel Targets\n\nLDAP injection that bypasses authentication = **Critical**. Blind attribute\nexfiltration of credentials\u002Fsecrets = **High**. AD enumeration alone = Medium-High.\n\n**Highest-value chains:**\n- **LDAP auth bypass** — close the `uid` filter and append an always-true OR so the\n  bind\u002Fsearch returns the admin entry without a valid password.\n- **Blind attribute exfil** — char-by-char extraction of an attribute value via a\n  boolean oracle (login success\u002Ffailure, result count, or response length).\n- **userPassword hash exfil (non-AD only)** — on OpenLDAP\u002F389-DS the\n  `userPassword` attribute can hold `{SSHA}`\u002F`{CRYPT}` hashes that ARE readable\n  by query. See the AD-vs-generic warning below.\n- **XPath injection auth bypass** — `' or '1'='1` against XML-backed auth.\n\n---\n\n## CRITICAL — Active Directory vs generic LDAP\n\nDo **not** conflate the two. They behave very differently:\n\n| | Generic LDAP (OpenLDAP, 389-DS, ApacheDS) | Active Directory |\n|---|---|---|\n| Password attribute | `userPassword` — may hold `{SSHA}`\u002F`{MD5}`\u002F`{CRYPT}` and **is readable** if ACL allows | `unicodePwd` — **write-only**, never returned by any search |\n| Hash exfil via injection | **Possible** where ACLs leak `userPassword` | **Not possible** — there is no readable hash attribute over LDAP |\n| Useful enum attrs | `uid`, `cn`, `mail`, `userPassword` | `sAMAccountName`, `userPrincipalName`, `mail`, `memberOf`, `description` (often holds plaintext secrets!) |\n\n**Do not tell a reader that blind LDAP injection yields AD password hashes — it\ndoes not.** `unicodePwd` is write-only. Against AD, the win is enumeration\n(`sAMAccountName`, `memberOf`, `description`\u002F`info` fields that admins misuse to\nstore passwords) and auth bypass — not hash dumping. The hash-exfil technique\napplies **only** to non-AD directories exposing `userPassword`.\n\n---\n\n## Attack Surface Signals\n\n```\nCorporate SSO \u002F intranet login pages (often legacy Java\u002FSpring\u002FPHP)\nWindows + IIS + \"integrated\" directory auth\n\u002Fapi\u002Fldap\u002F*  \u002Fapi\u002Fdirectory\u002F*  \u002Fpeople  \u002Faddress-book  \u002Fsearch?dir=\n\"Find a colleague\" \u002F org-chart \u002F employee-search features\nXML-backed config or auth → XPath injection candidate\nError strings that confirm an LDAP backend:\n  javax.naming.NameNotFoundException\n  javax.naming.directory.InvalidSearchFilterException\n  LDAP: error code 49 - 80090308  (AD invalid creds \u002F bind failure)\n  com.sun.jndi.ldap.*  \u002F  System.DirectoryServices  \u002F  ldap_search():\n  \"Bad search filter\"  \u002F  net.ldap (Go)  \u002F  python-ldap SERVER_DOWN\n```\n\n---\n\n## LDAP filter grammar (RFC 4515) — why injection works\n\nA login filter is typically built by string-concat:\n\n```\n(&(uid=\u003CUSERNAME>)(userPassword=\u003CPASSWORD>))\n```\n\n`&` = AND, `|` = OR, `!` = NOT. **Filters are prefix\u002FPolish notation** — the\noperator comes first and every sub-filter is parenthesised. To inject you must\n(a) escape the current `(uid=...)` group, (b) inject your own logic, and\n(c) leave the overall parenthesis count **balanced** or the server throws a\nfilter-syntax error instead of executing.\n\n### The special-character set — TEST EACH ONE\n\nThese characters are syntactically meaningful and MUST be escaped by a safe app\n(RFC 4515 §3). A different response can suggest parser involvement but does not prove unescaped input or exploitability:\n\n| Char | Filter escape | Why it matters |\n|------|---------------|----------------|\n| `*`  | `\\2a` | wildcard — matches any value |\n| `(`  | `\\28` | opens a filter group |\n| `)`  | `\\29` | closes a filter group |\n| `\\`  | `\\5c` | escape char itself |\n| NUL  | `\\00` | string terminator — truncates filter in C-backed servers |\n| `,` | DN-context escaping | RDN separator; DN encoding differs from filter encoding |\n\n**Search-filter context vs DN injection** are different bugs:\n- **Search-filter injection** (most common): your input lands inside a\n  `(attr=VALUE)` filter. Payloads use `* ( ) & | !`.\n- **DN injection**: your input is concatenated into a Distinguished Name\n  (`uid=VALUE,ou=people,dc=corp`). Here `,` `=` `+` `\"` `\\` `\u003C` `>` `;` and leading\u002Ftrailing spaces\n  matter, and a `*` is NOT a wildcard. Test both — the payloads do not transfer.\n\n---\n\n## Step-by-Step Hunting Methodology\n\n### Phase 1 — Confirm an LDAP backend (baseline first)\n\n```bash\n# ALWAYS capture a control response first — you compare everything to this.\nBASE=$(curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}|%{size_download}|%{time_total}\" \\\n  -X POST https:\u002F\u002F$TARGET\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"validlookinguser\",\"password\":\"wrongpass\"}')\necho \"BASELINE (valid-format, wrong pw): $BASE\"\n\n# Send a single unbalanced paren. A SAFE (escaping) app → identical baseline.\n# An INJECTABLE app → 500 \u002F filter-syntax error \u002F different size.\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"test)\",\"password\":\"x\"}' | grep -iE \\\n  \"naming|InvalidSearchFilter|error code 49|Bad search filter|jndi|ldap_search\"\n```\n\nA lone `)` that produces a syntax error\u002F500 while a balanced payload does not is\nthe cleanest LDAP-injection tell — note it, you will need it as proof.\n\n### Phase 2 — Derive a controlled test from the actual expression\n\nDo not copy a universal login payload. Record the full resulting filter, its\nparentheses and the actual bind\u002Fsearch flow; LDAP filters have no SQL-style\ncomment syntax. A filter selecting a user does not itself authenticate a password.\nIn a local fixture where the complete predicate is `(uid=INPUT)`, `*` changes the\nexpression to `(uid=*)` and tests presence rather than a literal star. Compare\nthat with the correctly escaped literal `(uid=\\2a)` and a nonexistent synthetic\nUID. In a real nested AND filter, those results do not establish password bypass.\n\nUse paired true\u002Ffalse controls on a public synthetic attribute and controlled\naccounts, not a production credential value. Bound the requests, rate and runtime;\nstop on lockout, elevated errors or unexpected personal data. Never expand to\npassword spraying, hash cracking or real attribute extraction without separately\nscoped authorization and the exact command gate above.\n\n### Phase 3 — XPath and evidence\n\nFor a known XPath 1.0 expression using a quoted string, a quote may alter syntax;\nconstruct the entire predicate and verify precedence, quoting and selected nodes\nin a disposable local XML fixture. Prefer variable binding in the application's\nXPath API to concatenation. Error messages or response length alone do not prove\nsuccessful authentication or data access. Use a controlled test session and a\npost-login resource only within scope; do not print cookies or account records.\n\n### Phase 4 — Direct LDAP confirmation and remediation\n\nIf direct directory access is authorized, use certificate-verified LDAPS or\nrequired StartTLS and prompt-based credentials (`ldapsearch -W`) rather than a\npassword in command arguments. Restrict requested attributes and search base.\nUse the library's distinct filter-value and DN escaping APIs, least-privilege\nbind accounts and proper bind authentication; reject empty passwords where the\napplication requires authentication. A referral-like filter attribute is not a\nstandard instruction to follow a URL. OOB callbacks require correlation and\ncontrols and cannot automatically prove LDAP injection or exclude scanner noise.\n\nPrimary references: [RFC 4515](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc4515),\n[OWASP prevention](https:\u002F\u002Fcheatsheetseries.owasp.org\u002Fcheatsheets\u002FLDAP_Injection_Prevention_Cheat_Sheet.html).\n\n## Chain Table\n\n| LDAP finding | Chain to | Impact |\n|--------------|----------|--------|\n| Auth-bypass (always-true filter) | Admin\u002FSSO panel as first directory entry | Critical |\n| AD enumeration (`sAMAccountName`) | Username list → password spray \u002F credential stuffing | Mass-ATO risk |\n| `memberOf` enumeration | Identify Domain Admins → targeted phishing\u002Fspray | Targeted compromise |\n| `description`\u002F`info` field read | Plaintext creds admins stashed there | Direct credential leak |\n| Blind exfil of `userPassword` **(non-AD only)** | `{SSHA}` (salted SHA-1) → hashcat `-m 111` (`{SSHA256}`=1411, `{SSHA512}`=1711); `{CRYPT}` → mode depends on the `$id$` prefix (`$1$`=500, `$6$`=1800) → offline crack | High |\n| LDAP referral → Collaborator | Server-side request \u002F internal directory reach | SSRF-class, confirms blind |\n\n> AD has no readable password attribute — do not list \"extract AD hashes\" as a\n> chain. Against AD, the credential win comes from `description`\u002F`info` misuse or\n> from enumerated usernames feeding a spray, never from `unicodePwd`.\n\n---\n\n## Validation — rule out the false positive BEFORE you report\n\nA \"bypass\" or \"match\" is only real once you have eliminated syntax-error,\nWAF-block, and length-jitter explanations.\n\n- [ ] **Auth bypass:** the always-true payload returns a **valid authenticated\n      session** (session cookie + access to a post-login resource), and the same\n      request with one paren removed returns a **filter-syntax error** — proving\n      the filter parsed and executed, not that the app fell open on every input.\n- [ ] **Negative control:** an equivalently-shaped but logically-FALSE payload\n      (`)(uid=NONEXISTENT_ZZZ)`) returns the **failure** response. If both\n      true-class and false-class \"succeed\", you found a broken endpoint, not LDAP\n      injection.\n- [ ] **Blind exfil:** each recovered char reproduces 3x with stable size; the\n      FALSE control still reads FALSE between rounds; recovered value verified by\n      a direct lookup or by the auth-bypass payload that uses it.\n- [ ] **XPath:** quotes\u002Fbrackets remained balanced (no 500), and the bypass logged\n      in to a real account context — not just a different error page.\n- [ ] **OOB where possible:** a correlated callback requires mechanism-specific evidence and controls; it is not decisive on its own.\n- [ ] **AD claim discipline:** if you say \"AD\", you enumerated AD-specific attrs\n      (`sAMAccountName`\u002F`memberOf`); never claim AD hash exfil.\n\n**Severity:**\n- Auth bypass landing as admin\u002Fprivileged directory entry: **Critical**\n- `userPassword` hash exfil (non-AD) or `description`-field credential read: **High**\n- AD user\u002Fgroup enumeration only: **Medium-High**\n- Blind boolean oracle confirmed but no useful attribute reachable: **Medium**\n\n## When to Use\n\n- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.\n- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.\n\n## Limitations\n\n- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.\n- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.\n- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.\n\n### Example\n\n```bash\n# Read-only first step; confirm scope before anything active.\ncat scope.txt  # target list from the authorized engagement brief\n```\n\n> Adapted from [elementalsouls\u002FClaude-BugHunter](https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.\n\nSeverity labels above are triage hypotheses, not automatic CVSS outcomes. Generic LDAP userPassword values are readable only with suitable ACLs; AD unicodePwd is not returned by ordinary search, but that does not justify a blanket claim that no AD attribute can ever contain a secret. Do not imply a PortSwigger LDAP academy\u002Flab exists without a verified direct reference. Missing report_count evidence is not a confirmed engagement history.\n","> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# HUNT-LDAP — LDAP Injection & XPath Injection\n\n> Grounding note: LDAP injection is rarely disclosed with verbatim payloads on\n> public platforms (most live on internal-pentest reports). This skill is\n> grounded in the **OWASP LDAP Injection Prevention \u002F Testing Guide\n> (WSTG-INPV-06)**, **PortSwigger Web Security Academy (LDAP injection)**, and\n> the **RFC 4515** filter grammar — all publicly verifiable references rather\n> than invented HackerOne IDs. Do not cite a report you cannot link.\n\n## Crown Jewel Targets\n\nLDAP injection that bypasses authentication = **Critical**. Blind attribute\nexfiltration of credentials\u002Fsecrets = **High**. AD enumeration alone = Medium-High.\n\n**Highest-value chains:**\n- **LDAP auth bypass** — close the `uid` filter and append an always-true OR so the\n  bind\u002Fsearch returns the admin entry without a valid password.\n- **Blind attribute exfil** — char-by-char extraction of an attribute value via a\n  boolean oracle (login success\u002Ffailure, result count, or response length).\n- **userPassword hash exfil (non-AD only)** — on OpenLDAP\u002F389-DS the\n  `userPassword` attribute can hold `{SSHA}`\u002F`{CRYPT}` hashes that ARE readable\n  by query. See the AD-vs-generic warning below.\n- **XPath injection auth bypass** — `' or '1'='1` against XML-backed auth.\n\n---\n\n## CRITICAL — Active Directory vs generic LDAP\n\nDo **not** conflate the two. They behave very differently:\n\n| | Generic LDAP (OpenLDAP, 389-DS, ApacheDS) | Active Directory |\n|---|---|---|\n| Password attribute | `userPassword` — may hold `{SSHA}`\u002F`{MD5}`\u002F`{CRYPT}` and **is readable** if ACL allows | `unicodePwd` — **write-only**, never returned by any search |\n| Hash exfil via injection | **Possible** where ACLs leak `userPassword` | **Not possible** — there is no readable hash attribute over LDAP |\n| Useful enum attrs | `uid`, `cn`, `mail`, `userPassword` | `sAMAccountName`, `userPrincipalName`, `mail`, `memberOf`, `description` (often holds plaintext secrets!) |\n\n**Do not tell a reader that blind LDAP injection yields AD password hashes — it\ndoes not.** `unicodePwd` is write-only. Against AD, the win is enumeration\n(`sAMAccountName`, `memberOf`, `description`\u002F`info` fields that admins misuse to\nstore passwords) and auth bypass — not hash dumping. The hash-exfil technique\napplies **only** to non-AD directories exposing `userPassword`.\n\n---\n\n## Attack Surface Signals\n\n```\nCorporate SSO \u002F intranet login pages (often legacy Java\u002FSpring\u002FPHP)\nWindows + IIS + \"integrated\" directory auth\n\u002Fapi\u002Fldap\u002F*  \u002Fapi\u002Fdirectory\u002F*  \u002Fpeople  \u002Faddress-book  \u002Fsearch?dir=\n\"Find a colleague\" \u002F org-chart \u002F employee-search features\nXML-backed config or auth → XPath injection candidate\nError strings that confirm an LDAP backend:\n  javax.naming.NameNotFoundException\n  javax.naming.directory.InvalidSearchFilterException\n  LDAP: error code 49 - 80090308  (AD invalid creds \u002F bind failure)\n  com.sun.jndi.ldap.*  \u002F  System.DirectoryServices  \u002F  ldap_search():\n  \"Bad search filter\"  \u002F  net.ldap (Go)  \u002F  python-ldap SERVER_DOWN\n```\n\n---\n\n## LDAP filter grammar (RFC 4515) — why injection works\n\nA login filter is typically built by string-concat:\n\n```\n(&(uid=\u003CUSERNAME>)(userPassword=\u003CPASSWORD>))\n```\n\n`&` = AND, `|` = OR, `!` = NOT. **Filters are prefix\u002FPolish notation** — the\noperator comes first and every sub-filter is parenthesised. To inject you must\n(a) escape the current `(uid=...)` group, (b) inject your own logic, and\n(c) leave the overall parenthesis count **balanced** or the server throws a\nfilter-syntax error instead of executing.\n\n### The special-character set — TEST EACH ONE\n\nThese characters are syntactically meaningful and MUST be escaped by a safe app\n(RFC 4515 §3). A different response can suggest parser involvement but does not prove unescaped input or exploitability:\n\n| Char | Filter escape | Why it matters |\n|------|---------------|----------------|\n| `*`  | `\\2a` | wildcard — matches any value |\n| `(`  | `\\28` | opens a filter group |\n| `)`  | `\\29` | closes a filter group |\n| `\\`  | `\\5c` | escape char itself |\n| NUL  | `\\00` | string terminator — truncates filter in C-backed servers |\n| `,` | DN-context escaping | RDN separator; DN encoding differs from filter encoding |\n\n**Search-filter context vs DN injection** are different bugs:\n- **Search-filter injection** (most common): your input lands inside a\n  `(attr=VALUE)` filter. Payloads use `* ( ) & | !`.\n- **DN injection**: your input is concatenated into a Distinguished Name\n  (`uid=VALUE,ou=people,dc=corp`). Here `,` `=` `+` `\"` `\\` `\u003C` `>` `;` and leading\u002Ftrailing spaces\n  matter, and a `*` is NOT a wildcard. Test both — the payloads do not transfer.\n\n---\n\n## Step-by-Step Hunting Methodology\n\n### Phase 1 — Confirm an LDAP backend (baseline first)\n\n```bash\n# ALWAYS capture a control response first — you compare everything to this.\nBASE=$(curl -s -o \u002Fdev\u002Fnull -w \"%{http_code}|%{size_download}|%{time_total}\" \\\n  -X POST https:\u002F\u002F$TARGET\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"validlookinguser\",\"password\":\"wrongpass\"}')\necho \"BASELINE (valid-format, wrong pw): $BASE\"\n\n# Send a single unbalanced paren. A SAFE (escaping) app → identical baseline.\n# An INJECTABLE app → 500 \u002F filter-syntax error \u002F different size.\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"test)\",\"password\":\"x\"}' | grep -iE \\\n  \"naming|InvalidSearchFilter|error code 49|Bad search filter|jndi|ldap_search\"\n```\n\nA lone `)` that produces a syntax error\u002F500 while a balanced payload does not is\nthe cleanest LDAP-injection tell — note it, you will need it as proof.\n\n### Phase 2 — Derive a controlled test from the actual expression\n\nDo not copy a universal login payload. Record the full resulting filter, its\nparentheses and the actual bind\u002Fsearch flow; LDAP filters have no SQL-style\ncomment syntax. A filter selecting a user does not itself authenticate a password.\nIn a local fixture where the complete predicate is `(uid=INPUT)`, `*` changes the\nexpression to `(uid=*)` and tests presence rather than a literal star. Compare\nthat with the correctly escaped literal `(uid=\\2a)` and a nonexistent synthetic\nUID. In a real nested AND filter, those results do not establish password bypass.\n\nUse paired true\u002Ffalse controls on a public synthetic attribute and controlled\naccounts, not a production credential value. Bound the requests, rate and runtime;\nstop on lockout, elevated errors or unexpected personal data. Never expand to\npassword spraying, hash cracking or real attribute extraction without separately\nscoped authorization and the exact command gate above.\n\n### Phase 3 — XPath and evidence\n\nFor a known XPath 1.0 expression using a quoted string, a quote may alter syntax;\nconstruct the entire predicate and verify precedence, quoting and selected nodes\nin a disposable local XML fixture. Prefer variable binding in the application's\nXPath API to concatenation. Error messages or response length alone do not prove\nsuccessful authentication or data access. Use a controlled test session and a\npost-login resource only within scope; do not print cookies or account records.\n\n### Phase 4 — Direct LDAP confirmation and remediation\n\nIf direct directory access is authorized, use certificate-verified LDAPS or\nrequired StartTLS and prompt-based credentials (`ldapsearch -W`) rather than a\npassword in command arguments. Restrict requested attributes and search base.\nUse the library's distinct filter-value and DN escaping APIs, least-privilege\nbind accounts and proper bind authentication; reject empty passwords where the\napplication requires authentication. A referral-like filter attribute is not a\nstandard instruction to follow a URL. OOB callbacks require correlation and\ncontrols and cannot automatically prove LDAP injection or exclude scanner noise.\n\nPrimary references: [RFC 4515](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc4515),\n[OWASP prevention](https:\u002F\u002Fcheatsheetseries.owasp.org\u002Fcheatsheets\u002FLDAP_Injection_Prevention_Cheat_Sheet.html).\n\n## Chain Table\n\n| LDAP finding | Chain to | Impact |\n|--------------|----------|--------|\n| Auth-bypass (always-true filter) | Admin\u002FSSO panel as first directory entry | Critical |\n| AD enumeration (`sAMAccountName`) | Username list → password spray \u002F credential stuffing | Mass-ATO risk |\n| `memberOf` enumeration | Identify Domain Admins → targeted phishing\u002Fspray | Targeted compromise |\n| `description`\u002F`info` field read | Plaintext creds admins stashed there | Direct credential leak |\n| Blind exfil of `userPassword` **(non-AD only)** | `{SSHA}` (salted SHA-1) → hashcat `-m 111` (`{SSHA256}`=1411, `{SSHA512}`=1711); `{CRYPT}` → mode depends on the `$id$` prefix (`$1$`=500, `$6$`=1800) → offline crack | High |\n| LDAP referral → Collaborator | Server-side request \u002F internal directory reach | SSRF-class, confirms blind |\n\n> AD has no readable password attribute — do not list \"extract AD hashes\" as a\n> chain. Against AD, the credential win comes from `description`\u002F`info` misuse or\n> from enumerated usernames feeding a spray, never from `unicodePwd`.\n\n---\n\n## Validation — rule out the false positive BEFORE you report\n\nA \"bypass\" or \"match\" is only real once you have eliminated syntax-error,\nWAF-block, and length-jitter explanations.\n\n- [ ] **Auth bypass:** the always-true payload returns a **valid authenticated\n      session** (session cookie + access to a post-login resource), and the same\n      request with one paren removed returns a **filter-syntax error** — proving\n      the filter parsed and executed, not that the app fell open on every input.\n- [ ] **Negative control:** an equivalently-shaped but logically-FALSE payload\n      (`)(uid=NONEXISTENT_ZZZ)`) returns the **failure** response. If both\n      true-class and false-class \"succeed\", you found a broken endpoint, not LDAP\n      injection.\n- [ ] **Blind exfil:** each recovered char reproduces 3x with stable size; the\n      FALSE control still reads FALSE between rounds; recovered value verified by\n      a direct lookup or by the auth-bypass payload that uses it.\n- [ ] **XPath:** quotes\u002Fbrackets remained balanced (no 500), and the bypass logged\n      in to a real account context — not just a different error page.\n- [ ] **OOB where possible:** a correlated callback requires mechanism-specific evidence and controls; it is not decisive on its own.\n- [ ] **AD claim discipline:** if you say \"AD\", you enumerated AD-specific attrs\n      (`sAMAccountName`\u002F`memberOf`); never claim AD hash exfil.\n\n**Severity:**\n- Auth bypass landing as admin\u002Fprivileged directory entry: **Critical**\n- `userPassword` hash exfil (non-AD) or `description`-field credential read: **High**\n- AD user\u002Fgroup enumeration only: **Medium-High**\n- Blind boolean oracle confirmed but no useful attribute reachable: **Medium**\n\n## When to Use\n\n- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.\n- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.\n\n## Limitations\n\n- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.\n- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.\n- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.\n\n### Example\n\n```bash\n# Read-only first step; confirm scope before anything active.\ncat scope.txt  # target list from the authorized engagement brief\n```\n\n> Adapted from [elementalsouls\u002FClaude-BugHunter](https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.\n\nSeverity labels above are triage hypotheses, not automatic CVSS outcomes. Generic LDAP userPassword values are readable only with suitable ACLs; AD unicodePwd is not returned by ordinary search, but that does not justify a blanket claim that no AD attribute can ever contain a secret. Do not imply a PortSwigger LDAP academy\u002Flab exists without a verified direct reference. Missing report_count evidence is not a confirmed engagement history.\n",{"name":5,"risk":27,"source":46,"license":14,"sources":47,"category":39,"date_added":48,"description":7,"source_repo":49,"source_type":21,"report_count":50,"compatibility":51,"license_source":52},"https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter","hackerone_public, owasp, portswigger","2026-09-20","elementalsouls\u002FClaude-BugHunter",0,"Requires explicit written authorization for a target scope plus the relevant testing tools for this technique. Docs-only; helper scripts and commands not bundled.","https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-hunt-ldap",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add boisenoise\u002Fskills-collections --skill hunt-ldap",{"tool":65,"command":66},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill hunt-ldap",{"tool":68,"command":69},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill hunt-ldap","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-hunt-ldap\u002FSKILL.md",true,[],[74,83,91,100,108,116],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":82},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":99},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":99},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":99},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]