Skip to content

Commit c87cff9

Browse files
committed
Python: LdapInjection
1 parent 29d4b16 commit c87cff9

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

python/ql/lib/semmle/python/security/dataflow/LdapInjectionQuery.qll

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,7 @@ private module LdapInjectionDnConfig implements DataFlow::ConfigSig {
2020

2121
predicate isBarrier(DataFlow::Node node) { node instanceof DnSanitizer }
2222

23-
predicate observeDiffInformedIncrementalMode() {
24-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 21 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@26:8:26:21), Column 5 does not select a source or sink originating from the flow call on line 21 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@27:68:27:83)
25-
}
26-
27-
Location getASelectedSourceLocation(DataFlow::Node source) {
28-
none() // TODO: Make sure that this source location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 21 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@26:8:26:21), Column 5 does not select a source or sink originating from the flow call on line 21 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@27:68:27:83)
29-
}
30-
31-
Location getASelectedSinkLocation(DataFlow::Node sink) {
32-
none() // TODO: Make sure that this sink location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 21 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@26:8:26:21), Column 5 does not select a source or sink originating from the flow call on line 21 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@27:68:27:83)
33-
}
23+
predicate observeDiffInformedIncrementalMode() { any() }
3424
}
3525

3626
/** Global taint-tracking for detecting "LDAP injection via the distinguished name (DN) parameter" vulnerabilities. */
@@ -43,17 +33,7 @@ private module LdapInjectionFilterConfig implements DataFlow::ConfigSig {
4333

4434
predicate isBarrier(DataFlow::Node node) { node instanceof FilterSanitizer }
4535

46-
predicate observeDiffInformedIncrementalMode() {
47-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@26:8:26:21), Column 5 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@27:68:27:83)
48-
}
49-
50-
Location getASelectedSourceLocation(DataFlow::Node source) {
51-
none() // TODO: Make sure that this source location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@26:8:26:21), Column 5 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@27:68:27:83)
52-
}
53-
54-
Location getASelectedSinkLocation(DataFlow::Node sink) {
55-
none() // TODO: Make sure that this sink location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@26:8:26:21), Column 5 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/python/ql/src/Security/CWE-090/LdapInjection.ql@27:68:27:83)
56-
}
36+
predicate observeDiffInformedIncrementalMode() { any() }
5737
}
5838

5939
/** Global taint-tracking for detecting "LDAP injection via the filter parameter" vulnerabilities. */

0 commit comments

Comments
 (0)