File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ class Configuration extends TaintTracking::Configuration {
22
22
23
23
override predicate isSanitizer ( DataFlow:: Node node ) {
24
24
super .isSanitizer ( node ) or
25
- node instanceof Sanitizer
25
+ node instanceof Sanitizer or
26
+ node = any ( DataFlow:: PropRead read | read .getPropertyName ( ) = "length" )
26
27
}
27
28
28
29
override predicate isAdditionalTaintStep ( DataFlow:: Node src , DataFlow:: Node dst ) {
@@ -32,10 +33,6 @@ class Configuration extends TaintTracking::Configuration {
32
33
override predicate isSanitizerGuard ( TaintTracking:: SanitizerGuardNode guard ) {
33
34
guard instanceof UpperBoundsCheckSanitizerGuard
34
35
}
35
-
36
- override predicate isSanitizerEdge ( DataFlow:: Node pred , DataFlow:: Node succ ) {
37
- succ .( DataFlow:: PropRead ) .accesses ( pred , "length" )
38
- }
39
36
}
40
37
41
38
/** Holds if data is converted to a number from `src` to `dst`. */
You can’t perform that action at this time.
0 commit comments