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

gorilla-csrf sometimes sets two cookies, breaking CSRF validation #73

Closed
asf-stripe opened this issue Oct 9, 2017 · 2 comments
Closed
Labels

Comments

@asf-stripe
Copy link

Twice now in production, we've run into a problem where people end up with two CSRF cookies, which randomly breaks validation of those cookies. I haven't been able to reproduce this in any lab setting, but I think this may be related to key rotation (e.g. #65), as those were test deployments that had a different CSRF key set.

Would it be possible for the error response emitted from a CSRF validation failure to cause any invalid cookie to be deleted?

@elithrar
Copy link
Contributor

elithrar commented Oct 10, 2017 via email

@elithrar
Copy link
Contributor

elithrar commented Nov 4, 2017

Closing due to inactivity, but please re-open if you can share a reproduction @asf-stripe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants