Skip to content

In-depth lesson · postMessage abuse

Bypasses and variations

Every point the postMessage abuse reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 32 of 32
  1. A message handler allowed reading a session token.

    Seen in 23 reports
  2. A path with parent directory segments escaped the admin prefix.

    Seen in 2 reports
  3. A message handler allowed reading or writing cookies.

    Seen in 2 reports
  4. A domain whose name begins with the trusted origin string passed a prefix check.

    Seen in 1 report
  5. A domain containing the trusted origin string anywhere passed a substring check.

    Seen in 1 report
  6. A domain matching the trusted origin when dots were treated as wildcards passed a regex search.

    Seen in 1 report
  7. Opening the page from an attacker window made the referrer match the message origin.

    Seen in 1 report
  8. An FTP-served page bypassed origin validation.

    Seen in 1 report
  9. An empty source in a modal message bypassed the check.

    Seen in 1 report
  10. A path with an invalid protocol bypassed the path filter.

    Seen in 1 report
  11. A File object's read-only name property bypassed HTML escaping.

    Seen in 1 report
  12. A forged success message sent before the legitimate one won the race.

    Seen in 1 report
  13. A JavaScript URI in a follow-up URL bypassed the redirect check.

    Seen in 1 report
  14. A data URL in a forged success message redirected the victim in Safari.

    Seen in 1 report
  15. A wildcard target origin let the token be posted to the attacker window.

    Seen in 1 report
  16. A JSONP endpoint loaded through ajax parameters executed script.

    Seen in 1 report
  17. A route action with model data containing HTML rendered as script.

    Seen in 1 report
  18. An avatar URL parameter with markup executed in the widget.

    Seen in 1 report
  19. A path traversal in a custom protocol loaded attacker HTML from the repository.

    Seen in 1 report
  20. A message handler allowed arbitrary calls on an analytics object to write cookies.

    Seen in 1 report
  21. A message handler allowed invoking arbitrary methods by name.

    Seen in 1 report
  22. A message handler allowed loading an arbitrary script file as an extension.

    Seen in 1 report
  23. A message handler allowed injecting CSS to capture input.

    Seen in 1 report
  24. A message handler allowed setting a map label with HTML.

    Seen in 1 report
  25. A message handler allowed a call-popup redirect to an attacker domain.

    Seen in 1 report
  26. A message handler allowed a WebSocket reconnect to leak a token.

    Seen in 1 report
  27. A message handler allowed reading files from a private repository.

    Seen in 1 report
  28. A message handler allowed leaking the current user directory path.

    Seen in 1 report
  29. A message handler allowed reading contact form data.

    Seen in 1 report
  30. A message handler allowed reading screenshots.

    Seen in 1 report
  31. A message handler allowed reading an OAuth code.

    Seen in 1 report
  32. A message handler allowed reading an OAuth access token.

    Seen in 1 report