hunt-ldap

Detect and exploit LDAP and XPath injection vulnerabilities in authentication systems.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill hunt-ldap-uphiago
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-ldap
Source: https://github.com/uphiago/recon-skills/tree/main/redteam/hunt-ldap
Command: npx skills add https://github.com/uphiago/recon-skills --skill hunt-ldap-uphiago

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenge of identifying and exploiting LDAP and XPath injection vulnerabilities in directory authentication systems and XML-backed data stores, which are often under-tested but can lead to critical security breaches including authentication bypass, sensitive data exfiltration, and enterprise Active Directory compromise.

Core Features & Use Cases

  • LDAP Injection Exploitation: Includes validated payloads for authentication bypass, blind char-by-char attribute exfiltration, and non-AD userPassword hash extraction.
  • XPath Injection Testing: Provides balanced payloads for XML-backed authentication bypass and node data dumping.
  • Active Directory Enumeration: Enables wildcard-based discovery of users, groups, and privileged accounts via LDAP filters, including identification of admin accounts with plaintext credentials in description fields.
  • Use Case: Ideal for authorized penetration tests and red team engagements targeting corporate SSO portals, employee directory APIs, legacy Java/PHP applications with directory backends, and XML-based authentication systems.

Quick Start

Use the hunt-ldap skill to test your organization's corporate SSO login endpoint for LDAP injection vulnerabilities and attempt a safe, controlled authentication bypass using balanced filter payloads to validate the finding.

Frequently Asked Questions about hunt-ldap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does LDAP injection work for authentication bypass?

XPath injection targets XML-backed data stores by injecting balanced expressions into authentication queries to bypass login validation. This skill provides payloads for XML-backed authentication bypass and node data dumping, enabling testers to extract hierarchical data structures from vulnerable XML query backends.

What's the best way to enumerate Active Directory users via LDAP injection?

Blind LDAP exfiltration extracts sensitive attributes character-by-character using boolean-based inference techniques when query responses are not directly reflected. This skill provides validated payloads and false positive guards for blind attribute exfiltration, including non-AD userPassword hash extraction from directory authentication systems.

Can I use LDAP injection payloads on legacy Java and PHP applications?

LDAP injection payloads apply to legacy Java and PHP applications that use directory backends for authentication and employee directory APIs. This skill targets corporate SSO portals and applications with LDAP or XML query backends, providing validated payloads tested against directory authentication systems commonly found in enterprise environments.

What false positive guards exist when testing XPath injection for auth bypass?

False positive guards for XPath and LDAP injection testing include payload validation checks and controlled authentication bypass verification using balanced filter expressions. This skill provides methodology to distinguish true vulnerabilities from error-based anomalies, ensuring penetration testers confirm actual authentication bypass rather than application errors.