Skip to content
CSRF Disclosed report Advanced CVE-2022-29912

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.

Matheus Vrech Follow

Originally disclosed on Mozilla

  • Fixed in 13 months
  • Paid in 10 months
  • Disclosed after 13 months
Text
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.

The original report as published on Mozilla's Bugzilla, by Matheus Vrech. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

  1. Open the test page and click it to open a second tab.
  2. Activate Reader View in that tab.
  3. Wait for the tab to be redirected to a blank page.
  4. Wait for it to be redirected back to Reader View.
  5. 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.

More by Matheus Vrech

View all

1 more disclosed report, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.