JavaScript: Track flow into (simple) higher-order function calls.

The only case we support for now are functions that invoke one of their arguments, passing another argument as input.
This commit is contained in:
Max Schaefer
2019-01-11 08:05:54 +00:00
parent 414ab8ea8c
commit edc5117dfd
7 changed files with 92 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
| a.js:1:15:1:23 | "tainted" | b.js:4:13:4:40 | whoKnow ... Tainted |
| a.js:1:15:1:23 | "tainted" | b.js:6:13:6:13 | x |
| a.js:2:15:2:28 | "also tainted" | b.js:5:13:5:29 | notTaintedTrustMe |
| callback.js:16:14:16:21 | "source" | callback.js:13:14:13:14 | x |
| callback.js:17:15:17:23 | "source2" | callback.js:13:14:13:14 | x |
| destructuring.js:2:16:2:24 | "tainted" | destructuring.js:5:14:5:20 | tainted |
| destructuring.js:2:16:2:24 | "tainted" | destructuring.js:9:15:9:22 | tainted2 |
| destructuring.js:19:15:19:23 | "tainted" | destructuring.js:14:15:14:15 | p |