Skip to content

In-depth lesson · postMessage abuse

Reports behind this point

Read the listener code and ask two questions: does it check the origin exactly, and what does it do with the data. A missing check, a substring or prefix match, a regex with dots, or a referrer comparison are all findings worth pursuing.