Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info about pre-loading to the Sec-Fetch-Dest GET check #1875

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

exyi
Copy link
Member

@exyi exyi commented Oct 24, 2024

We check that the page is not being loaded with
JS, which should prevent attackers from scraping
all other pages if they gain access to one.

It seems that this check is incompatible with Chrome prefetching (and obviously also any JS-based prefetching). The issue seems to be that Chrome does not know
how will the prefetched document be used.

According to their documentation, it should ignore prefetch requests with non-2XX status code.
Our rejections are 403, so it should not display them to the user.

We check that the page is not being loaded with
JS, which should prevent attackers from scraping
all other pages if they gain access to one.

It seems that this check is incompatible with Chrome
prefetching (and obviously also any JS-based prefetching).
The issue seems to be that Chrome does not know
how will the prefetched document be used.

According to their documentation, it should ignore
prefetch requests with non-2XX status code.
Our rejections are 403, so it should not display them
to the user.
@exyi exyi added this to the Version 4.3 milestone Oct 24, 2024
@tomasherceg tomasherceg merged commit 22f9e4b into main Nov 3, 2024
14 of 15 checks passed
@tomasherceg tomasherceg deleted the sec-fetch-check-preloading-info branch November 3, 2024 10:19
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.

2 participants