Only flag up the deepest properties

This commit is contained in:
Henry Mercer 2023-05-30 19:50:56 +01:00
parent eb1c7a3887
commit 86ead5e019

View file

@ -25,7 +25,9 @@ class EventContextAccessConfiguration extends DataFlow::Configuration {
} }
override predicate isSink(DataFlow::Node sink, DataFlow::FlowLabel lbl) { 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( override predicate isAdditionalFlowStep(