Skip to content

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ module RequestForgery {
3131
w.writesField(v.getAUse(), f, pred) and succ = v.getAUse()
3232
)
3333
}
34+
35+
predicate observeDiffInformedIncrementalMode() { any() }
36+
37+
Location getASelectedSinkLocation(DataFlow::Node sink) {
38+
result = sink.getLocation()
39+
or
40+
result = sink.(Sink).getARequest().getLocation()
41+
}
3442
}
3543

3644
/** Tracks taint flow from untrusted data to request forgery attack vectors. */

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ module SafeUrlFlow {
3636
or
3737
node instanceof SanitizerEdge
3838
}
39+
40+
predicate observeDiffInformedIncrementalMode() {
41+
none() // only used as secondary configuration
42+
}
3943
}
4044

4145
/** Tracks taint flow for reasoning about safe URLs. */

0 commit comments

Comments
 (0)