SameSite cookie bypass via Reader view
A SameSite Strict cookie was still sent to the victim site when a link was clicked from inside the browser's Reader view, even though the navigation originated from an attacker-controlled page. An attacker could therefore bypass the SameSite protection that is meant to stop cross-site requests from carrying the victim's cookies.
- Fixed in 7 days
- Paid in 12 days
- Disclosed after 7 days
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Steps to reproduce:
1. Go to https://shhnjk.azurewebsites.net/SameSite.php (Sets SameSite cookie)
2. Go to https://test.shhnjk.com/trigger_read.html
3. Click on Reader view.
4. Click on CLICK ME link.
Actual results:
SameSite Strict cookie sent.
Expected results:
Link click from Attacker site shouldn't send SameSite Strict cookie to Victim site. This is implemented correctly in normal webpage, but it's not in Reader view.
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 Reader view rendered and followed links in a context that did not enforce the SameSite cookie policy applied to normal page navigations.
Impact
A SameSite Strict cookie could be sent on a cross-site navigation started from an attacker page, weakening the protection against cross-site request forgery; the report only demonstrates this in Reader view.
What the attacker needed
Victim uses a browser with Reader view; victim clicks a link in Reader view
How it was found
- Open the page that sets a SameSite cookie.
- Open the attacker page that contains the trigger.
- Switch the page into Reader view.
- Click the link inside Reader view and observe the cookie being 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.
Websites store small pieces of data called cookies in your browser, and a SameSite setting is meant to stop other websites from making your browser send those cookies along with their own requests. Here the browser's built-in Reader view, which reformats pages for easier reading, did not apply that rule, so the cookie still went to the victim site. That means a malicious page could get a logged-in user's browser to act as them.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.