Closed Bug 1773344 Opened 3 years ago Closed 3 years ago

Firefox Site Isolation (Fission) Leaks Set-Cookie headers

Categories

(Core :: Networking: Cookies, enhancement)

Firefox 102
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1713203

People

(Reporter: david, Unassigned)

Details

Steps to reproduce:

Tested using Firefox nightly (102.0a1).

  1. Navigate to https://adobkin.name/coxp/leaktest.php?coep=require-corp&coop=same-origin in Firefox.

This page has COOP+COEP enabled and tries to load a cross-origin image that doesn't set a CORP header. The image is blocked but response includes the header:

Set-Cookie: secret=SECRETchaed5eeCeiM5hee3ou9Ogi7ooMeeHou1ogaoy7moya9MewoXeanie1fa7OhHahd; Path=/; SameSite=None; Secure
  1. Navigate to about:memory and click the 'Measure' button. Find the process corresponding to the previously opened page in the process index and copy the pid out of the title. In my case the process was called "webCOOP+COEP=https://adobkin.name".

  2. Dump render process memory. In the console, run gcore -a $pid

  3. Run grep -a SECRETchaed5eeCeiM5hee3ou9Ogi7ooMeeHou1ogaoy7moya9MewoXeanie1fa7OhHahd core.$pid to check if the value from the Set-Cookie header leaked into the renderer process (even though the response body was blocked by COEP)

Actual results:

The cookie value was leaked into the renderer process's memory where a Spectre-capable attacker could have stollen it

Expected results:

The cookie value should not be present in the renderer process's memory (this is how Chrome's site isolation behaves)

Summary: Firefox Site Isolation Leaks Set-Cookie headers → Firefox Site Isolation (Fission) Leaks Set-Cookie headers

The Bugbug bot thinks this bug should belong to the 'Core::Networking: Cookies' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Networking: Cookies
Product: Firefox → Core

We are already working on this.

Ed, can you please confirm or reopen?

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(eguloien)
Resolution: --- → DUPLICATE

I am able to replicate on fx 100.0.
I'm pretty sure this will be solved by bug 1713203 fix. I will attempt replication again after implementation is complete of cookie broadcast and re-open this bug if necessary.

Flags: needinfo?(eguloien)
You need to log in before you can comment on or make changes to this bug.