Skip to content

Fix LDAP filter escaping (RFC4515)#224

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

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

Conversation

@MegaManSec
Copy link

  • 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.
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