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

Limit cookie lifetime for cross-site redirections #10163

Closed
fmarier opened this issue Jun 9, 2020 · 4 comments
Closed

Limit cookie lifetime for cross-site redirections #10163

fmarier opened this issue Jun 9, 2020 · 4 comments
Labels
closed/not-actionable priority/P3 The next thing for us to work on. It'll ride the trains. privacy/tracking Preventing sites from tracking users across the web privacy

Comments

@fmarier
Copy link
Member

fmarier commented Jun 9, 2020

In order to limit the usefulness of redirect trackers (also called bounce trackers), we could cap the lifetime of the first-party cookie they set to a very low number (e.g. 1 hour).

This would affect only:

  • top-level cross-site requests
  • HTTP status codes: 301, 302, 303, 307, 308

It would not help with meta refreshes or JavaScript redirects (e.g. setting window.location) but it would likely defeat a number of cookie syncing techniques.

To test:

Related: #539, #817.

@fmarier fmarier added privacy privacy/tracking Preventing sites from tracking users across the web priority/P3 The next thing for us to work on. It'll ride the trains. labels Jun 9, 2020
@fmarier
Copy link
Member Author

fmarier commented Jun 16, 2020

If this simple heuristic breaks OAuth flows, we could exempt redirects which contain the expected OAuth parameters (e.g. response_type, client_id, scope, state).

@fmarier
Copy link
Member Author

fmarier commented Jun 24, 2020

Other signals to consider:

  • The presence of a valid P3P header may indicate non-essential cookies.
  • The presence of an explicit SameSite=None cookie attribute may indicate non-essential cookies.
  • The presence of both HttpOnly and Secure cookie attributes may indicate a useful cookie

@fmarier
Copy link
Member Author

fmarier commented Sep 19, 2023

@pes10k Can this be closed now that we have ephemeral first-party storage for redirects? Or is there anything useful in here that we're not yet doing?

@pes10k
Copy link
Contributor

pes10k commented Sep 19, 2023

yep, good to close. Good catch! I'll close it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed/not-actionable priority/P3 The next thing for us to work on. It'll ride the trains. privacy/tracking Preventing sites from tracking users across the web privacy
Projects
None yet
Development

No branches or pull requests

2 participants