In-depth lesson · postMessage abuse
Year by year
What the disclosed postMessage abuse reports of each year show, newest first: what first appeared, what kept working and what turned up less.
2020
8 pointsKept working5
A path with parent directory segments escaped the admin prefix in a navigation handler, according to the reports.
Seen in 1 report
A domain matching the trusted origin when dots were treated as wildcards passed a regex search, as demonstrated.
Seen in 1 report
A wildcard target origin let a token be posted to the attacker window, the reports show.
Seen in 1 report
A message handler allowed invoking arbitrary methods by name on the page's objects, according to the reports.
Seen in 1 report
A message handler allowed reading screenshots or documents from a cloud productivity app, as reported.
Seen in 1 report
Turned up less3
The prefix and substring domain matching bypasses from 2019 are not repeated in the 2020 reports.
The race condition with forged success messages seen in 2019 does not appear in the 2020 reports.
The empty source bypass from 2019 is not seen in the 2020 reports.
Seen in 1 report
2019
13 pointsNew this year4
DOM XSS via postMessage first appears clearly in the disclosed reports this year, with several cases.
Seen in 4 reports
Abusing Shopify admin and checkout handlers is first seen in the reports.
Seen in 3 reports
Bypassing origin checks with prefix or substring domain matching is first documented in the reports.
Exploiting race conditions by sending forged messages before legitimate ones is first shown in the reports.
Kept working6
Hunters found that message handlers on Shopify admin and checkout pages could be abused to read session tokens or CSRF tokens, as shown in the reports.
Seen in 2 reports
A domain whose name began with the trusted origin string passed a prefix check, according to the reports.
Seen in 1 report
A domain containing the trusted origin string anywhere passed a substring check, as demonstrated.
Seen in 1 report
An empty source in a modal message bypassed the origin check, the reports show.
Seen in 1 report
A forged success message sent before the legitimate one won a race condition, according to the reports.
A JavaScript URI in a follow-up URL bypassed the redirect check, as reported.
Seen in 1 report
Turned up less3
Abusing Marketo contact forms on HackerOne, which featured in 2017 reports, is less prominent in the 2019 reports.
The FTP-served page origin bypass seen in 2017 does not appear in the 2019 reports.
Seen in 1 report
The File object read-only property bypass from 2017 is not repeated in the 2019 reports.
2017
6 pointsKept working6
Hunters found that message handlers on Slack pages could be abused to read a victim's session token, as shown in the disclosed reports.
A call-popup redirect could be pointed at an attacker domain so that a token was delivered there, according to the reports.
A WebSocket reconnect flow combined with a message handler leaked a session token to an attacker page, as reported.
Seen in 1 report
A message handler on a HackerOne page allowed reading contact form data submitted on the parent site, the reports show.
Sending messages from an FTP-served page bypassed origin validation, as demonstrated in the disclosed reports.
Seen in 1 report
A File object's read-only name property bypassed HTML escaping when sent in a message payload, according to the reports.