Langsung ke konten
Skillpedia
Keamanan48k Β· #4883

hunt-ldap

Fungsinya

Alat ini membantu menemukan celah keamanan pada sistem yang menggunakan LDAP atau XPath untuk verifikasi. Alat ini mencari cara untuk mengelabuhi sistem tersebut agar memberikan akses tidak sah atau mengungkap informasi.

Kapan dipakai

  • βœ“Saat menguji keamanan sebuah website atau aplikasi.
  • βœ“Untuk memeriksa apakah sistem login rentan.
  • βœ“Saat menyelidiki bagaimana data diakses dalam sebuah sistem.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-ldap/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-ldap/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œCari celah injection LDAP dan XPath di example.com”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini mengirimkan data yang dibuat khusus ke kolom input sistem. Jika sistem merespons secara tidak wajar atau menampilkan error tertentu, hal itu bisa menunjukkan adanya kelemahan keamanan yang dapat dimanfaatkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

HUNT-LDAP β€” LDAP Injection & XPath Injection

Grounding note: LDAP injection is rarely disclosed with verbatim payloads on public platforms (most live on internal-pentest reports). This skill is grounded in the OWASP LDAP Injection Prevention / Testing Guide (WSTG-INPV-06), PortSwigger Web Security Academy (LDAP injection), and the RFC 4515 filter grammar β€” all publicly verifiable references rather than invented HackerOne IDs. Do not cite a report you cannot link.

Crown Jewel Targets

LDAP injection that bypasses authentication = Critical. Blind attribute exfiltration of credentials/secrets = High. AD enumeration alone = Medium-High.

Highest-value chains:

  • LDAP auth bypass β€” close the uid filter and append an always-true OR so the bind/search returns the admin entry without a valid password.
  • Blind attribute exfil β€” char-by-char extraction of an attribute value via a boolean oracle (login success/failure, result count, or response length).
  • userPassword hash exfil (non-AD only) β€” on OpenLDAP/389-DS the userPassword attribute can hold {SSHA}/{CRYPT} hashes that ARE readable by query. See the AD-vs-generic warning below.
  • XPath injection auth bypass β€” ' or '1'='1 against XML-backed auth.

CRITICAL β€” Active Directory vs generic LDAP

Do not conflate the two. They behave very differently:

Generic LDAP (OpenLDAP, 389-DS, ApacheDS) Active Directory
Password attribute userPassword β€” may hold {SSHA}/{MD5}/{CRYPT} and is readable if ACL allows unicodePwd β€” write-only, never returned by any search
Hash exfil via injection Possible where ACLs leak userPassword Not possible β€” there is no readable hash attribute over LDAP
Useful enum attrs uid, cn, mail, userPassword sAMAccountName, userPrincipalName, mail, memberOf, description (often holds plaintext secrets!)

Do not tell a reader that blind LDAP injection yields AD password hashes β€” it does not. unicodePwd is write-only. Against AD, the win is enumeration (sAMAccountName, memberOf, description/info fields that admins misuse to store passwords) and auth bypass β€” not hash dumping. The hash-exfil technique applies only to non-AD directories exposing userPassword.


Attack Surface Signals

Corporate SSO / intranet login pages (often legacy Java/Spring/PHP)
Windows + IIS + "integrated" directory auth
/api/ldap/*  /api/directory/*  /people  /address-book  /search?dir=
"Find a colleague" / org-chart / employee-search features
XML-backed config or auth β†’ XPath injection candidate
Error strings that confirm an LDAP backend:
  javax.naming.NameNotFoundException
  javax.naming.directory.InvalidSearchFilterException
  LDAP: error code 49 - 80090308  (AD invalid creds / bind failure)
  com.sun.jndi.ldap.*  /  System.DirectoryServices  /  ldap_search():
  "Bad search filter"  /  net.ldap (Go)  /  python-ldap SERVER_DOWN

LDAP filter grammar (RFC 4515) β€” why injection works

A login filter is typically built by string-concat:

(&(uid=<USERNAME>)(userPassword=<PASSWORD>))

& = AND, | = OR, ! = NOT. Filters are prefix/Polish notation β€” the operator comes first and every sub-filter is parenthesised. To inject you must (a) escape the current (uid=...) group, (b) inject your own logic, and (c) leave the overall parenthesis count balanced or the server throws a filter-syntax error instead of executing.

The special-character set β€” TEST EACH ONE

…

Pertanyaan umum

Apa itu injection LDAP?

Ini adalah serangan ketika pelaku memasukkan perintah berbahaya ke dalam kueri LDAP (protokol untuk mengakses layanan direktori) untuk mengelabuhi sistem agar mendapatkan akses atau data tidak sah.

Apa itu injection XPath?

Ini adalah serangan serupa yang menggunakan XPath (bahasa untuk melakukan kueri pada dokumen XML) untuk memanfaatkan kelemahan pada sistem yang mengandalkan XML untuk autentikasi atau konfigurasi.

Apakah saya perlu izin untuk menggunakan alat ini?

Ya, sangat penting untuk memiliki izin tertulis dan tegas dari pemilik sistem sebelum menggunakan alat ini. Penggunaan tanpa izin adalah tindakan ilegal.

Detail

Deskripsi asli dari pembuat

Hunt LDAP Injection and XPath Injection

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4883
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa