Skip to content

Commit f899c3a

Browse files
committed
Go: RequestForgery
1 parent 6aea791 commit f899c3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

go/ql/lib/semmle/go/security/RequestForgery.qll

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ module RequestForgery {
3232
)
3333
}
3434

35-
predicate observeDiffInformedIncrementalMode() {
36-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 selects sink.getARequest (/Users/d10c/src/semmle-code/ql/go/ql/src/Security/CWE-918/RequestForgery.ql@25:8:25:14)
35+
predicate observeDiffInformedIncrementalMode() { any() }
36+
37+
Location getASelectedSinkLocation(DataFlow::Node sink) {
38+
result = sink.getLocation()
39+
or
40+
result = sink.(Sink).getARequest().getLocation()
3741
}
3842
}
3943

0 commit comments

Comments
 (0)