ldap-injection

Craft malicious LDAP filters to exploit injection vulnerabilities in web applications.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill ldap-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ldap-injection
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/web/ldap-injection
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill ldap-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps penetration testers identify and exploit LDAP injection vulnerabilities to bypass authentication, extract sensitive directory data, and enumerate users.

Core Features & Use Cases

  • Authentication Bypass: Gain unauthorized access to systems by manipulating LDAP filters.
  • Data Exfiltration: Extract user credentials, group memberships, and other sensitive attributes from LDAP directories.
  • User Enumeration: Discover valid usernames and associated information.
  • Use Case: A penetration tester suspects an LDAP injection vulnerability in a web application's login form. They use this Skill to craft payloads that bypass the authentication mechanism and retrieve a list of all users and their associated roles.

Quick Start

Use the ldap-injection skill to attempt an authentication bypass against the target URL http://example.com/login using the username field.

Frequently Asked Questions about ldap-injection

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

FAQPage Schema
How do I exploit LDAP injection vulnerabilities in Active Directory?

LDAP injection vulnerabilities are exploited by crafting malicious LDAP filters to bypass authentication and extract sensitive directory data from Active Directory and OpenLDAP environments. Techniques include wildcard injection, null byte truncation, and hex encoding.

Can I bypass authentication using LDAP injection on a login form?

Yes, authentication bypass is achieved by injecting malicious LDAP filters into web application login forms. This manipulates the authentication mechanism to grant unauthorized access without valid credentials.

How does blind data extraction work with LDAP injection?

Blind data extraction manipulates LDAP filters to infer directory information character by character. It allows penetration testers to extract user credentials, group memberships, and attributes without direct error feedback.

Does LDAP injection work with both OpenLDAP and Active Directory?

Yes, LDAP injection targets both OpenLDAP and Active Directory environments. The skill leverages filter manipulation techniques like wildcard injection and hex encoding to exploit vulnerabilities across both directory services.

What is null byte truncation used for in LDAP filter manipulation?

Null byte truncation is an LDAP filter manipulation technique that prematurely terminates the filter string. This can bypass trailing syntax checks and authentication logic in vulnerable web applications.

How do I enumerate users through LDAP injection?

User enumeration is performed by injecting crafted LDAP filters to discover valid usernames and associated attributes. The skill extracts group memberships and sensitive directory data through targeted filter manipulation.