Skip to content

Commit

Permalink
Only flag up the deepest properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mercer committed May 30, 2023
1 parent eb1c7a3 commit 86ead5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion queries/default-setup-event-context.ql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class EventContextAccessConfiguration extends DataFlow::Configuration {
}

override predicate isSink(DataFlow::Node sink, DataFlow::FlowLabel lbl) {
sink instanceof DataFlow::PropRead and lbl instanceof ParsedLabel
sink instanceof DataFlow::PropRead and
lbl instanceof ParsedLabel and
not exists(DataFlow::PropRead n | sink = n.getBase())
}

override predicate isAdditionalFlowStep(
Expand Down

0 comments on commit 86ead5e

Please sign in to comment.