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 cookie leak on redirect #608

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Fix cookie leak on redirect #608

merged 1 commit into from
Jun 14, 2023

Conversation

amoskvin
Copy link
Contributor

@amoskvin amoskvin commented Apr 3, 2023

This removes the cookie header on redirect, otherwise if there are multiple redirects, a new cookie header gets appended each time, while the existing one remains. This could result in the cookies being leaked to a third party.

This removes the cookie header on redirect, otherwise if there are
multiple redirects, a new cookie header gets appended each time, while
the existing one remains. This could result in the cookies being leaked
to a third party.
@algesten
Copy link
Owner

algesten commented Apr 3, 2023

@amoskvin Thank you for this!

Looks like a quite serious problem, and a very good fix.

@jsha thoughts?

@amoskvin
Copy link
Contributor Author

ping @jsha @algesten

Copy link
Collaborator

@jsha jsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting, and thanks for the fix! I'll prep a release with this and some other recent changes.

@jsha jsha merged commit fbae139 into algesten:main Jun 14, 2023
@jsha
Copy link
Collaborator

jsha commented Jun 15, 2023

This is released in 2.7.0.

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.

3 participants