JS: Add comment about allowImplicitRead in PostMessageStar

This commit is contained in:
Asger F
2024-03-13 11:30:52 +01:00
parent 0a2050bc42
commit 406b080ce3

View File

@@ -34,6 +34,7 @@ module PostMessageStarConfig implements DataFlow::ConfigSig {
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet contents) {
// If an object leaks, all of its properties have leaked
isSink(node) and contents = DataFlow::ContentSet::anyProperty()
}
}