JavaScript: add taint step through 'join'

This commit is contained in:
Asger F
2018-08-09 16:51:18 +01:00
parent c0fe0a1d24
commit 0c124d2f8c

View File

@@ -365,7 +365,9 @@ module TaintTracking {
name = "trimRight" or
// sorted, interesting, properties of Object.prototype
name = "toString" or
name = "valueOf"
name = "valueOf" or
// sorted, interesting, properties of Array.prototype
name = "join"
) or
exists (int i | pred.asExpr() = astNode.(MethodCallExpr).getArgument(i) |
name = "concat" or