mirror of
https://github.com/elicpeter/nyx.git
synced 2026-07-12 21:02:11 +02:00
new capacity bits (#67)
This commit is contained in:
parent
afaffc0df6
commit
7d0e7320e2
261 changed files with 10591 additions and 231 deletions
10
tests/fixtures/ldap_injection/python/baseline_constant_ldap.py
vendored
Normal file
10
tests/fixtures/ldap_injection/python/baseline_constant_ldap.py
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Baseline: filter is a compile-time constant. No taint reaches `search_s` so
|
||||
# no LDAP_INJECTION finding fires.
|
||||
import ldap
|
||||
|
||||
|
||||
def lookup():
|
||||
conn = ldap.initialize("ldap://example.com")
|
||||
return conn.search_s(
|
||||
"ou=people,dc=example,dc=com", ldap.SCOPE_SUBTREE, "(objectClass=person)"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue