Skip to content

Commit cd017db

Browse files
committed
PS: Add taint versions of local flow tests.
1 parent c728c7d commit cd017db

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
| test.ps1:1:1:1:4 | a1 | test.ps1:2:6:2:9 | a1 |
2+
| test.ps1:1:7:1:13 | Source | test.ps1:1:1:1:4 | a1 |
3+
| test.ps1:1:7:1:13 | Source | test.ps1:1:1:1:13 | ...=... |
4+
| test.ps1:2:1:2:9 | Sink | test.ps1:2:1:2:9 | pre-return value for Sink |
5+
| test.ps1:2:1:2:9 | Sink | test.ps1:2:1:2:9 | pre-return value for Sink |
6+
| test.ps1:2:1:2:9 | implicit unwrapping of Sink | test.ps1:1:1:17:8 | return value for test.ps1 |
7+
| test.ps1:2:1:2:9 | pre-return value for Sink | test.ps1:2:1:2:9 | implicit unwrapping of Sink |
8+
| test.ps1:2:1:2:9 | pre-return value for Sink | test.ps1:2:1:2:9 | implicit unwrapping of Sink |
9+
| test.ps1:4:1:4:3 | b | test.ps1:5:4:5:6 | b |
10+
| test.ps1:4:6:4:13 | GetBool | test.ps1:4:1:4:3 | b |
11+
| test.ps1:4:6:4:13 | GetBool | test.ps1:4:1:4:13 | ...=... |
12+
| test.ps1:5:4:5:6 | b | test.ps1:10:14:10:16 | b |
13+
| test.ps1:6:5:6:8 | a2 | test.ps1:8:6:8:9 | a2 |
14+
| test.ps1:6:11:6:17 | Source | test.ps1:6:5:6:8 | a2 |
15+
| test.ps1:6:11:6:17 | Source | test.ps1:6:5:6:17 | ...=... |
16+
| test.ps1:8:1:8:9 | Sink | test.ps1:8:1:8:9 | pre-return value for Sink |
17+
| test.ps1:8:1:8:9 | Sink | test.ps1:8:1:8:9 | pre-return value for Sink |
18+
| test.ps1:8:1:8:9 | implicit unwrapping of Sink | test.ps1:1:1:17:8 | return value for test.ps1 |
19+
| test.ps1:8:1:8:9 | pre-return value for Sink | test.ps1:8:1:8:9 | implicit unwrapping of Sink |
20+
| test.ps1:8:1:8:9 | pre-return value for Sink | test.ps1:8:1:8:9 | implicit unwrapping of Sink |
21+
| test.ps1:10:1:10:3 | c | test.ps1:11:6:11:8 | c |
22+
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:1:10:3 | c |
23+
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:1:10:16 | ...=... |
24+
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:6:10:16 | [...]... |
25+
| test.ps1:10:14:10:16 | b | test.ps1:10:6:10:16 | [...]... |
26+
| test.ps1:11:1:11:8 | Sink | test.ps1:11:1:11:8 | pre-return value for Sink |
27+
| test.ps1:11:1:11:8 | Sink | test.ps1:11:1:11:8 | pre-return value for Sink |
28+
| test.ps1:11:1:11:8 | implicit unwrapping of Sink | test.ps1:1:1:17:8 | return value for test.ps1 |
29+
| test.ps1:11:1:11:8 | pre-return value for Sink | test.ps1:11:1:11:8 | implicit unwrapping of Sink |
30+
| test.ps1:11:1:11:8 | pre-return value for Sink | test.ps1:11:1:11:8 | implicit unwrapping of Sink |
31+
| test.ps1:11:6:11:8 | [post] c | test.ps1:13:7:13:9 | c |
32+
| test.ps1:11:6:11:8 | c | test.ps1:13:7:13:9 | c |
33+
| test.ps1:13:1:13:3 | d | test.ps1:14:6:14:8 | d |
34+
| test.ps1:13:6:13:10 | (...) | test.ps1:13:1:13:3 | d |
35+
| test.ps1:13:6:13:10 | (...) | test.ps1:13:1:13:10 | ...=... |
36+
| test.ps1:13:6:13:10 | (...) | test.ps1:13:6:13:10 | (...) |
37+
| test.ps1:13:7:13:9 | c | test.ps1:13:6:13:10 | (...) |
38+
| test.ps1:13:7:13:9 | c | test.ps1:13:7:13:9 | c |
39+
| test.ps1:14:1:14:8 | Sink | test.ps1:14:1:14:8 | pre-return value for Sink |
40+
| test.ps1:14:1:14:8 | Sink | test.ps1:14:1:14:8 | pre-return value for Sink |
41+
| test.ps1:14:1:14:8 | implicit unwrapping of Sink | test.ps1:1:1:17:8 | return value for test.ps1 |
42+
| test.ps1:14:1:14:8 | pre-return value for Sink | test.ps1:14:1:14:8 | implicit unwrapping of Sink |
43+
| test.ps1:14:1:14:8 | pre-return value for Sink | test.ps1:14:1:14:8 | implicit unwrapping of Sink |
44+
| test.ps1:14:6:14:8 | [post] d | test.ps1:16:6:16:8 | d |
45+
| test.ps1:14:6:14:8 | d | test.ps1:16:6:16:8 | d |
46+
| test.ps1:16:1:16:3 | e | test.ps1:17:6:17:8 | e |
47+
| test.ps1:16:6:16:12 | ...+... | test.ps1:16:1:16:3 | e |
48+
| test.ps1:16:6:16:12 | ...+... | test.ps1:16:1:16:12 | ...=... |
49+
| test.ps1:16:6:16:12 | ...+... | test.ps1:16:6:16:12 | ...+... |
50+
| test.ps1:17:1:17:8 | Sink | test.ps1:17:1:17:8 | pre-return value for Sink |
51+
| test.ps1:17:1:17:8 | Sink | test.ps1:17:1:17:8 | pre-return value for Sink |
52+
| test.ps1:17:1:17:8 | implicit unwrapping of Sink | test.ps1:1:1:17:8 | return value for test.ps1 |
53+
| test.ps1:17:1:17:8 | pre-return value for Sink | test.ps1:17:1:17:8 | implicit unwrapping of Sink |
54+
| test.ps1:17:1:17:8 | pre-return value for Sink | test.ps1:17:1:17:8 | implicit unwrapping of Sink |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import powershell
2+
import semmle.code.powershell.dataflow.TaintTracking
3+
import semmle.code.powershell.dataflow.DataFlow
4+
5+
from DataFlow::Node pred, DataFlow::Node succ
6+
where TaintTracking::localTaintStep(pred, succ)
7+
select pred, succ

0 commit comments

Comments
 (0)