File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/ql/src/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module ExternalAPIUsedWithUntrustedData {
34
34
*
35
35
* By default, this includes the objects passed to a `PropertyProjection` or `ExtendCall`.
36
36
*
37
- * Such objects tend of have lots of application-defined properties which don't represent
37
+ * Such objects tend to have lots of application-defined properties which don't represent
38
38
* distinct API usages, so the query will avoid generating API names from them.
39
39
*/
40
40
abstract class DeepObjectSink extends DataFlow:: Node { }
@@ -48,7 +48,7 @@ module ExternalAPIUsedWithUntrustedData {
48
48
}
49
49
50
50
/** Holds if `node` corresponds to a deep object argument. */
51
- private predicate isDeepObjectSink ( API:: Node node ) { node .getARhs ( ) = any ( DeepObjectSink deep ) }
51
+ private predicate isDeepObjectSink ( API:: Node node ) { node .getARhs ( ) instanceof DeepObjectSink }
52
52
53
53
/**
54
54
* A sanitizer for data flowing to an external API.
@@ -136,7 +136,7 @@ module ExternalAPIUsedWithUntrustedData {
136
136
}
137
137
138
138
/**
139
- * Holds `node` may be part of an access path leading to an external API call.
139
+ * Holds if `node` may be part of an access path leading to an external API call.
140
140
*/
141
141
private predicate nodeIsRelevant ( API:: Node node ) {
142
142
mayComeFromLibrary ( node ) and
You can’t perform that action at this time.
0 commit comments