Skip to content

Don't let another site's page load through when it shares the page reference - #152

Merged
marcusosterberg merged 1 commit into
mainfrom
fix/foreign-navigation-in-har
Oct 20, 2026
Merged

marcusosterberg merged 1 commit into
mainfrom
fix/foreign-navigation-in-har

Conversation

@marcusosterberg

Copy link
Copy Markdown
Contributor

A crossed DevTools session can navigate the tested tab to another website without the HAR getting a new page. Every request after the navigation then keeps the tested page's pageref, so the first-page filter and the check of the first request let them through. Test 27 for www.mucf.se got the CSS errors of gambiagrupperna.org this way (sitetests row 19900080).

Now drop everything from the first top level navigation (a document the browser started itself, not an iframe) to a host that is neither the tested one nor reached through its redirects.

…ference

A crossed DevTools session can navigate the tested tab to another website
without the HAR getting a new page. Every request after the navigation then
keeps the tested page's pageref, so the first-page filter and the check of
the first request let them through. Test 27 for www.mucf.se got the CSS
errors of gambiagrupperna.org this way (sitetests row 19900080).

Now drop everything from the first top level navigation (a document the
browser started itself, not an iframe) to a host that is neither the tested
one nor reached through its redirects.
@marcusosterberg
marcusosterberg merged commit 41bb05d into main Oct 20, 2026
1 check passed
@marcusosterberg
marcusosterberg deleted the fix/foreign-navigation-in-har branch October 20, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ Proxy