SameSite cookie bypass when using history navigation via a window reference to reload reader mode page containing a meta redirect
A SameSite cookie was sent on a cross-site request when a Reader View page containing a meta redirect was reloaded through history navigation via a window reference. An attacker could therefore have a SameSite-protected cookie attached to a request it should not have been sent with.
Originally disclosed on Mozilla
- Fixed in 13 months
- Paid in 10 months
- Disclosed after 13 months
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Steps to reproduce:
1. Go to https://abrasax.club/readcookie.html
2. Click anywhere in the page to open another tab.
3. Click in Reader View icon.
3. Wait 15 seconds until the new tab is redirected to about:blank
4. Wait 4 seconds more to be redirected back to Reader View.
5. Reader View will render meta redirect page and SameSite cookie will be bypassed.
Actual results:
SameSite cookie is sent when Reader View is reloaded with a meta redirect.
Expected results:
SameSite cookie not sent.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the browser's SameSite enforcement did not account for a Reader View page being reloaded through history navigation via a window reference combined with a meta redirect.
What the attacker needed
Firefox with Reader View; victim visits attacker page; specific timing waits
How it was found
- Open the test page and click it to open a second tab.
- Activate Reader View in that tab.
- Wait for the tab to be redirected to a blank page.
- Wait for it to be redirected back to Reader View.
- Observe that the meta redirect page renders and the SameSite cookie is sent.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cookies can carry a SameSite setting that tells the browser not to send them when a page is loaded from a different website, which helps stop cross-site request forgery. Here the browser still sent the cookie because of an unusual sequence involving Reader View, a meta redirect and going back through history. The report is very short and does not explain the mechanism in detail.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.