Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-35647: Fix path check in cookiejar #11436
Conversation
This comment has been minimized.
This comment has been minimized.
@serhiy-storchaka It would be helpful if you can review this since you had reviewed #10258 . The RFC has a section weak integrity about this
So opinions on if this is worthy enough of considering it as a security fix to backport to 3.6 or to have this as a regular bug fix to 3.7 and master would be helpful. cc: @ned-deily |
16a6959
to
de2c5a4
This comment has been minimized.
This comment has been minimized.
@alex Any opinions on this? It would be good to get this resolved for 3.7.3rc1. |
I'm not an expert in this code, so it'd be good to get someone more familiar with the |
I read the detailed description of this issue in (https://bugs.python.org/issue35647) (Thanks @tirkarthi ) +1 to back-porting this to supported versions of Python. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Mar 10, 2019
@orsenthil: Please replace |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Mar 10, 2019
Thanks @tirkarthi for the PR, and @orsenthil for merging it |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Mar 10, 2019
GH-12267 is a backport of this pull request to the 3.7 branch. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Mar 10, 2019
GH-12268 is a backport of this pull request to the 3.6 branch. |
This comment has been minimized.
This comment has been minimized.
Thanks Alex and Senthil for review and merge. |
Co-authored-by: Xtreak <tir.karthi@gmail.com>
* Refactor cookie path check as per RFC 6265 * Add tests for prefix match of path * Add news entry * Fix set_ok_path and refactor tests * Use slice for last letter
* Refactor cookie path check as per RFC 6265 * Add tests for prefix match of path * Add news entry * Fix set_ok_path and refactor tests * Use slice for last letter
tirkarthi commentedJan 5, 2019
•
edited by bedevere-bot
path_return_ok
to use RFC 6265 path-match algorithm. Fixset_ok_path
which also had similar bug in prefix check which now usespath_return_ok
itself.https://bugs.python.org/issue35647