Skip to content

Commit f3453c7

Browse files
committed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

go/ql/src/experimental/CWE-918/SSRF.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ module ServerSideRequestForgery {
3030
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
3131

3232
predicate isBarrierOut(DataFlow::Node node) { node instanceof SanitizerEdge }
33+
34+
predicate observeDiffInformedIncrementalMode() { any() }
35+
36+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
37+
38+
Location getASelectedSinkLocation(DataFlow::Node sink) {
39+
result = sink.(Sink).getARequest().getLocation()
40+
}
3341
}
3442

3543
/** Tracks taint flow for reasoning about request forgery vulnerabilities. */

0 commit comments

Comments
 (0)