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

fix xsrf issues on link update and delete #129

Merged
merged 1 commit into from
May 30, 2024
Merged

fix xsrf issues on link update and delete #129

merged 1 commit into from
May 30, 2024

Conversation

willnorris
Copy link
Member

Two fixes, both of which would be sufficient on their own, but are both still worth doing:

  • redirect /.detail/ URLs to always use canonical link names. For example, for a go/foo link, a request to /.detail/F-O-O will redirect to /.detail/foo.
  • use the canonical link short name for xsrf token generation and validation, rather than the user-provided short name.

Fixes #128

Two fixes, both of which would be sufficient on their own, but are both
still worth doing:
 - redirect /.detail/ URLs to always use canonical link names. For
   example, for a go/foo link, a request to /.detail/F-O-O will redirect
   to /.detail/foo.
 - use the canonical link short name for xsrf token generation and
   validation, rather than the user-provided short name.

Fixes #128

Signed-off-by: Will Norris <will@tailscale.com>
@willnorris willnorris requested a review from patrickod May 30, 2024 16:44
@willnorris willnorris merged commit ef8d461 into main May 30, 2024
4 checks passed
@willnorris willnorris deleted the will/xsrf branch May 30, 2024 18:22
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.

users getting xsrf errors
2 participants