Skip to content

Commit d3b9d1d

Browse files
committed
JS: Partial SSRF does not select the sink location
1 parent 7d6abb4 commit d3b9d1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/ql/lib/semmle/python/security/dataflow/ServerSideRequestForgeryQuery.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ private module PartialServerSideRequestForgeryConfig implements DataFlow::Config
6868
predicate observeDiffInformedIncrementalMode() { any() }
6969

7070
Location getASelectedSinkLocation(DataFlow::Node sink) {
71-
result = sink.(Sink).getLocation()
72-
or
71+
// Note: this query does not select the sink itself
7372
result = sink.(Sink).getRequest().getLocation()
7473
}
7574
}

0 commit comments

Comments
 (0)