This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -112,17 +112,15 @@ predicate privateUrlFlowsToAuthCodeUrlCall(DataFlow::CallNode call) {
112
112
class FlowToPrint extends DataFlow:: Configuration {
113
113
FlowToPrint ( ) { this = "FlowToPrint" }
114
114
115
- predicate isSource ( DataFlow:: Node source , DataFlow:: CallNode call ) {
116
- exists ( AuthCodeURL m | call = m .getACall ( ) | source = call .getResult ( ) )
117
- }
118
-
119
115
predicate isSink ( DataFlow:: Node sink , DataFlow:: CallNode call ) {
120
116
exists ( Fmt:: Printer printer | call = printer .getACall ( ) | sink = call .getArgument ( _) )
121
117
or
122
118
exists ( LoggerCall logCall | call = logCall | sink = logCall .getAMessageComponent ( ) )
123
119
}
124
120
125
- override predicate isSource ( DataFlow:: Node source ) { isSource ( source , _) }
121
+ override predicate isSource ( DataFlow:: Node source ) {
122
+ source = any ( AuthCodeURL m ) .getACall ( ) .getResult ( )
123
+ }
126
124
127
125
override predicate isSink ( DataFlow:: Node sink ) { isSink ( sink , _) }
128
126
}
@@ -131,7 +129,7 @@ class FlowToPrint extends DataFlow::Configuration {
131
129
predicate resultFlowsToPrinter ( DataFlow:: CallNode authCodeURLCall ) {
132
130
exists ( FlowToPrint cfg , DataFlow:: PathNode source , DataFlow:: PathNode sink |
133
131
cfg .hasFlowPath ( source , sink ) and
134
- cfg . isSource ( source .getNode ( ) , authCodeURLCall )
132
+ authCodeURLCall . getResult ( ) = source .getNode ( )
135
133
)
136
134
}
137
135
You can’t perform that action at this time.
0 commit comments