Skip to content

Commit c9ece38

Browse files
committed
Go/SSRF
go/ql/src/experimental/CWE-918/SSRF.ql
1 parent 0d532d0 commit c9ece38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ module ServerSideRequestForgery {
3333

3434
predicate observeDiffInformedIncrementalMode() { any() }
3535

36-
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
37-
3836
Location getASelectedSinkLocation(DataFlow::Node sink) {
37+
result = sink.(Sink).getLocation()
38+
or
3939
result = sink.(Sink).getARequest().getLocation()
4040
}
4141
}

0 commit comments

Comments
 (0)