Skip to content

Fix LDAP filter escaping (RFC4515)#224

Closed
MegaManSec wants to merge 1 commit intooperasoftware:masterfrom
MegaManSec:f
Closed

Fix LDAP filter escaping (RFC4515)#224
MegaManSec wants to merge 1 commit intooperasoftware:masterfrom
MegaManSec:f

Conversation

@MegaManSec
Copy link
Copy Markdown

  • Correctly escape NUL byte (\0 -> \00)
  • Replace hardcoded "\00" (three chars) with actual NUL
  • Ensure proper hex codes: \ -> \5c ( -> \28 ) -> \29
    • -> \2a NUL -> \00

Previously, "\00" was treated as "" (0x5c), so NULs were never escaped.

- Correctly escape NUL byte (\0 -> \00)
- Replace hardcoded "\00" (three chars) with actual NUL
- Ensure proper hex codes:
    \  -> \5c
    (  -> \28
    )  -> \29
    *  -> \2a
    NUL -> \00

Previously, "\00" was treated as "\" (0x5c), so NULs were never escaped.
@MegaManSec MegaManSec closed this by deleting the head repository Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant