Skip to content

Commit 86ead5e

Browse files
committed
Only flag up the deepest properties
1 parent eb1c7a3 commit 86ead5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

queries/default-setup-event-context.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class EventContextAccessConfiguration extends DataFlow::Configuration {
2525
}
2626

2727
override predicate isSink(DataFlow::Node sink, DataFlow::FlowLabel lbl) {
28-
sink instanceof DataFlow::PropRead and lbl instanceof ParsedLabel
28+
sink instanceof DataFlow::PropRead and
29+
lbl instanceof ParsedLabel and
30+
not exists(DataFlow::PropRead n | sink = n.getBase())
2931
}
3032

3133
override predicate isAdditionalFlowStep(

0 commit comments

Comments
 (0)