php-ldap-audit

Trace user-controlled inputs to LDAP execution points in PHP code.

386|38|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-ldap-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-ldap-audit
Source: https://github.com/0xShe/PHP-Code-Audit-Skill/tree/main/php-ldap-audit
Command: npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-ldap-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP web applications often build LDAP queries by concatenating user input into filters or DNs, which can lead to LDAP injection vulnerabilities that bypass authentication or disclose data. This Skill provides tooling and methodology to identify, classify and remediate LDAP-related injection risks in PHP source code.

Core Features & Use Cases

  • Detect user-controlled data entering LDAP filter/DN construction.
  • Map potential injection paths to ldap_search/ldap_read execution points and provide PoC-ready guidance.
  • Output remediation recommendations and evidence-collection templates to support secure fixes.

Quick Start

Audit a PHP codebase to locate LDAP query constructions and generate an evidence-based remediation plan.

Frequently Asked Questions about php-ldap-audit

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

FAQPage Schema
How do I detect LDAP injection vulnerabilities in PHP code?

Detect LDAP injection vulnerabilities in PHP by tracing user-controlled inputs into filter and DN construction, mapping execution paths to ldap_search and ldap_read bindings to produce evidence-based remediation guidance.

How does static analysis trace user input to LDAP execution points?

Static analysis traces user input to LDAP execution points by following data flow from request variables into filter and DN strings, identifying where unsanitized data reaches ldap_search or ldap_read functions during the security audit.

Can I audit an entire PHP project for LDAP query construction risks?

Yes, you can audit an entire PHP project for LDAP query construction risks by applying the analysis across the codebase to catalog all instances where user input influences LDAP bindings and generate a comprehensive remediation plan.

What is the best way to generate PoC-ready reports for LDAP injection findings?

Generate PoC-ready reports for LDAP injection findings by mapping identified inputs to LDAP execution points, filtering outputs, and producing evidence-collection templates that support secure fixes and proof of concept validation.

Do I need threat modeling to remediate PHP LDAP injection risks?

Threat modeling supports remediating PHP LDAP injection risks by providing the methodology to classify injection paths and prioritize fixes, while the audit itself enforces evidence-contract requirements to map inputs to execution points for secure remediation.