Skip to content

Commit 6aea791

Browse files
committed
Go: ReflectedXss
1 parent 88e81ec commit 6aea791

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ module ReflectedXss {
2323

2424
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2525

26-
predicate observeDiffInformedIncrementalMode() {
27-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 7 selects sink.getAssociatedLoc (/Users/d10c/src/semmle-code/ql/go/ql/src/Security/CWE-079/ReflectedXss.ql@36:84:36:90)
26+
predicate observeDiffInformedIncrementalMode() { any() }
27+
28+
Location getASelectedSinkLocation(DataFlow::Node sink) {
29+
result = sink.getLocation()
30+
or
31+
result = sink.(SharedXss::Sink).getAssociatedLoc().getLocation()
2832
}
2933
}
3034

0 commit comments

Comments
 (0)