Skip to content

Commit 40f7a3b

Browse files
committed
1 parent e7935b6 commit 40f7a3b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ module ReflectedXss {
2222
predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
2323

2424
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
25+
26+
predicate observeDiffInformedIncrementalMode() { any() }
27+
28+
Location getASelectedSinkLocation(DataFlow::Node sink) {
29+
result = sink.getLocation()
30+
or
31+
result = sink.(SharedXss::Sink).getAssociatedLoc().getLocation()
32+
}
2533
}
2634

2735
/** Tracks taint flow from untrusted data to XSS attack vectors. */

0 commit comments

Comments
 (0)