mirror of
https://github.com/versity/versitygw.git
synced 2026-07-21 07:22:32 +00:00
9ac52cd5c7
LDAP-backed IAM lookups built a search filter using the request access key before signature verification, allowing filter metacharacters to alter query semantics. This made account lookup behavior observable and could be abused as a pre-authentication oracle in affected LDAP deployments. This change escapes access key values with ldap.EscapeFilter when constructing LDAP search filters and adds a regression test that verifies metacharacters are encoded rather than interpreted as filter operators. Also add DN escaping along with this fix too. Reported by GitHub user KrisKennawayDD.