Skip to content

Password reset token leaked via HTTP referer  #1257

Description

@mlissner

Somebody reported today that the following steps are bad:

  1. Get a forget password link (cl.com/reset-password/some-token-here)
  2. Click it
  3. Load the page
  4. Click the Twitter or Github links at the bottom of the page

If you do that, you'll leak your URL, including the reset token, to those websites. Not great.

This is easy to fix with rel="noreferrer". Unfortunately we can't use referrer-policy because it messes up CSRF protections in Django.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions