Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed ldap search filters #21

Closed
martinvanhensbergen opened this issue Sep 22, 2023 · 1 comment · Fixed by #22
Closed

Malformed ldap search filters #21

martinvanhensbergen opened this issue Sep 22, 2023 · 1 comment · Fixed by #22
Labels
good first issue Good for newcomers

Comments

@martinvanhensbergen
Copy link

Hi all,

we have noticed that in some cases, the reported LDAP search filter parsed from traffic is malformed. It seems to occur in the case that an AND or OR clause is followed by only one subnode. In those cases, we see that the filter misses a closing parenthesis ')'.

We are trying to isolate a pcap that has this to test but we thought we'd report it now as this symptom might also be analyzable through code inspection.

Should we have an isolated pcap that we can share, we will add it to the ticket.

Thanks!

@bbannier
Copy link
Member

Thank you for the report @martinvanhensbergen. I can confirm that I see this issue in an artificial test case I added over in #22,

analyzer.functions ...
  > spicyc -j -d -L ${DIST}/analyzer %INPUT
... analyzer.functions failed
  % 'spicyc -j -d -L ${DIST}/analyzer <..>/tests/.tmp/analyzer.functions/functions.spicy' failed unexpectedly (exit code 1)
  % cat .stderr
  uncaught exception hilti::rt::AssertionFailure: (|(foo=*) (<..>/tests/.tmp/analyzer.functions/functions.spicy:113:5)

1 of 1 test failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants