Skip to content

Commit

Permalink
Merge pull request #18740 from asgerf/js/more-precise-diff-informed
Browse files Browse the repository at this point in the history
JS: Provide more precise related locations
  • Loading branch information
asgerf authored Feb 17, 2025
2 parents 3644de0 + 7e3f898 commit 0ca9b22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ module PolynomialReDoSConfig implements DataFlow::ConfigSig {
predicate observeDiffInformedIncrementalMode() { any() }

Location getASelectedSinkLocation(DataFlow::Node sink) {
result = sink.(Sink).getLocation()
or
result = sink.(Sink).getHighlight().getLocation()
or
result = sink.(Sink).getRegExp().getLocation()
Expand Down
4 changes: 4 additions & 0 deletions javascript/ql/src/experimental/Security/CWE-918/SSRF.qll
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module SsrfConfig implements DataFlow::ConfigSig {

predicate isBarrierOut(DataFlow::Node node) { strictSanitizingPrefixEdge(node, _) }

Location getASelectedSourceLocation(DataFlow::Node source) {
none() // Does not select the source
}

predicate observeDiffInformedIncrementalMode() { any() }
}

Expand Down

0 comments on commit 0ca9b22

Please sign in to comment.