Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 406b080

Browse files
committed
JS: Add comment about allowImplicitRead in PostMessageStar
1 parent 0a2050b commit 406b080

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

javascript/ql/lib/semmle/javascript/security/dataflow/PostMessageStarQuery.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module PostMessageStarConfig implements DataFlow::ConfigSig {
3434
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
3535

3636
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet contents) {
37+
// If an object leaks, all of its properties have leaked
3738
isSink(node) and contents = DataFlow::ContentSet::anyProperty()
3839
}
3940
}

0 commit comments

Comments
 (0)