JS: Partial SSRF does not select the sink location

This commit is contained in:
Asger F
2025-02-06 11:30:32 +01:00
parent 7d6abb4e0a
commit d3b9d1d89d

View File

@@ -68,8 +68,7 @@ private module PartialServerSideRequestForgeryConfig implements DataFlow::Config
predicate observeDiffInformedIncrementalMode() { any() }
Location getASelectedSinkLocation(DataFlow::Node sink) {
result = sink.(Sink).getLocation()
or
// Note: this query does not select the sink itself
result = sink.(Sink).getRequest().getLocation()
}
}