File tree Expand file tree Collapse file tree
csharp/ql/src/experimental/Security Features/backdoor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212import csharp
1313import DataFlow
14- import DataFlow:: PathGraph
14+
15+ query predicate nodes = PathGraph:: nodes / 3 ;
16+
17+ query predicate edges ( DataFlow:: PathNode a , DataFlow:: PathNode b ) {
18+ PathGraph:: edges ( a , b )
19+ or
20+ exists (
21+ FlowsFromGetLastWriteTimeConfigToTimeSpanArithmeticCallable conf1 ,
22+ FlowsFromTimeSpanArithmeticToTimeComparisonCallable conf2
23+ |
24+ conf1 = a .getConfiguration ( ) and
25+ conf1 .isSink ( a .getNode ( ) ) and
26+ conf2 = b .getConfiguration ( ) and
27+ b .isSource ( )
28+ )
29+ or
30+ exists (
31+ FlowsFromTimeSpanArithmeticToTimeComparisonCallable conf1 ,
32+ FlowsFromTimeComparisonCallableToSelectionStatementCondition conf2
33+ |
34+ conf1 = a .getConfiguration ( ) and
35+ conf1 .isSink ( a .getNode ( ) ) and
36+ conf2 = b .getConfiguration ( ) and
37+ b .isSource ( )
38+ )
39+ }
1540
1641/**
1742 * Class that will help to find the source for the trigger file-modification date.
You can’t perform that action at this time.
0 commit comments