Skip to content

In-depth lesson · postMessage abuse

Reports behind this point

Write the report around the root cause and the fix: exact origin whitelist, no eval, encode before innerHTML, scheme validation, path prefix checks, no cookie access, validate every message. This helps triage and shows you understand the bug.