File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
javascript/ql/src/experimental/Security/CWE-090 Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,12 @@ module LdapInjection {
1414 override predicate isSink ( DataFlow:: Node sink ) { sink instanceof Sink }
1515
1616 override predicate isSanitizer ( DataFlow:: Node node ) { node instanceof Sanitizer }
17+
18+ override predicate isAdditionalTaintStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
19+ exists ( LdapjsParseFilter filter |
20+ pred = filter .getArgument ( 0 ) and
21+ succ = filter
22+ )
23+ }
1724 }
1825}
Original file line number Diff line number Diff line change 55 */
66
77import javascript
8- import Ldapjs:: Ldapjs
98
109module LdapInjection {
10+ import Ldapjs:: Ldapjs
11+
1112 /**
1213 * A data flow source for LDAP injection vulnerabilities.
1314 */
@@ -70,16 +71,4 @@ module LdapInjection {
7071 )
7172 }
7273 }
73-
74- /**
75- * A step through the parseFilter API (https://github.com/ldapjs/node-ldapjs/issues/181).
76- */
77- class StepThroughParseFilter extends TaintTracking:: AdditionalTaintStep , DataFlow:: CallNode {
78- StepThroughParseFilter ( ) { this instanceof LdapjsParseFilter }
79-
80- override predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) {
81- pred = this .getArgument ( 0 ) and
82- succ = this
83- }
84- }
8574}
You can’t perform that action at this time.
0 commit comments