Skip to content
XSS Write-up Advanced

“Day 14: Cookie Hijacking Exposed — How I Bypassed Chrome’s “Secure” Storage”

The author claims that Chrome's Partitioned Storage can be bypassed by a Service Worker registered from an attacker-controlled subdomain, allowing authenticated API calls to be made cross-site. The text also lists several other cookie-related attack ideas, but provides no concrete evidence of a working exploit against a real target.

Aman Sharma Follow

Published on infosecwriteups.com

During a penetration test for a Fortune 500 company last quarter, I discovered a critical flaw in Chrome’s Partitioned Storage that allowed cross-site session hijacking. Despite Chrome’s claims of airtight cookie isolation, I found a loophole in browser behavior that exposed authenticated sessions.

Aman Sharma, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

The author claims this could allow cross-site session hijacking by injecting authenticated API calls, but no real-world exploitation or defence bypass is demonstrated.

What the attacker needed

Attacker controls a subdomain; victim visits attacker page; loose cookie on parent domain

The fix

The text suggests using strict cookie attributes (Secure, HttpOnly, SameSite, Partitioned, __Host- prefix) and restricting Service Worker scopes, but does not state that any fix was applied.

How it was found

  1. A subdomain sets a cookie with a wildcard domain attribute.
  2. An attacker-controlled page registers a Service Worker scoped to the root path.
  3. The Service Worker intercepts fetch requests to API endpoints and forwards them with credentials.

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 write-up has not been written yet. The Original tab links to the source.

Cookies are small pieces of data that websites store in your browser to remember you. Browsers try to keep cookies from one site separate from another, but this article suggests a way that separation might fail if a malicious subdomain registers a background script called a Service Worker. The article is more of a collection of ideas than a proven attack.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Aman Sharma

View all

34 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.