File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
javascript/ql/test/library-tests/InterProceduralFlow Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 3636| tst2.js:3:17:3:26 | "tainted2" | tst2.js:11:15:11:24 | g(source2) |
3737| tst2.js:6:24:6:37 | "also tainted" | tst2.js:10:15:10:24 | g(source1) |
3838| tst2.js:6:24:6:37 | "also tainted" | tst2.js:11:15:11:24 | g(source2) |
39+ | tst4.js:2:16:2:24 | "tainted" | tst4.js:15:15:15:31 | id(still_tainted) |
40+ | tst4.js:2:16:2:24 | "tainted" | tst4.js:16:15:16:28 | p.also_tainted |
41+ | tst4.js:2:16:2:24 | "tainted" | tst4.js:17:15:17:28 | substr(source) |
3942| tst.js:2:17:2:22 | "src1" | tst.js:3:15:3:29 | String(source1) |
4043| tst.js:2:17:2:22 | "src1" | tst.js:4:15:4:29 | RegExp(source1) |
4144| tst.js:2:17:2:22 | "src1" | tst.js:5:15:5:33 | new String(source1) |
Original file line number Diff line number Diff line change 1+ ( function ( p ) {
2+ let source = "tainted" ;
3+
4+ function id ( x ) {
5+ return x ;
6+ }
7+
8+ function substr ( x ) {
9+ return x . substring ( 2 ) ;
10+ }
11+
12+ var still_tainted = source . substring ( 2 ) ;
13+ p . also_tainted = still_tainted ;
14+
15+ let sink1 = id ( still_tainted ) ;
16+ let sink2 = p . also_tainted ;
17+ let sink3 = substr ( source ) ;
18+ } ) ;
You can’t perform that action at this time.
0 commit comments