Skip to content

Commit a3d8f1a

Browse files
committed
[DIFF-INFORMED] Go: BadRedirectCheck
1 parent 5e41459 commit a3d8f1a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

go/ql/src/Security/CWE-601/BadRedirectCheck.ql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ module Config implements DataFlow::ConfigSig {
123123
}
124124

125125
predicate isSink(DataFlow::Node sink) { sink instanceof OpenUrlRedirect::Sink }
126+
127+
predicate observeDiffInformedIncrementalMode() { any() }
128+
129+
Location getASelectedSourceLocation(DataFlow::Node source) {
130+
result = source.getLocation()
131+
or
132+
exists(DataFlow::Node check |
133+
isCheckedSource(source, check) and
134+
result = check.getLocation()
135+
)
136+
}
126137
}
127138

128139
module Flow = TaintTracking::Global<Config>;

0 commit comments

Comments
 (0)