JS: Restrict AP length in prototype-polluting function

This commit is contained in:
Asger F
2025-01-06 14:33:41 +01:00
parent 7ccb476b1b
commit 0cdda87161

View File

@@ -277,6 +277,12 @@ module PropNameTrackingConfig implements DataFlow::StateConfigSig {
node instanceof DataFlow::VarAccessBarrier or
node = DataFlow::MakeBarrierGuard<BarrierGuard>::getABarrierNode()
}
int accessPathLimit() {
// Speed up the query. For the pattern we're looking for the value rarely
// flows through any contents, apart from a capture content.
result = 1
}
}
class FlowState = PropNameTrackingConfig::FlowState;