Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.9] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595)#25725

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
orsenthil merged 2 commits intopython:3.9frommiss-islington:backport-76cd81d-3.9
Apr 29, 2021

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedApr 29, 2021
edited by bedevere-bot
Loading

  • issue43882 - urllib.parse should sanitize urls containing ASCII newline and tabs.

Co-authored-by: Gregory P. Smithgreg@krypto.org
Co-authored-by: Serhiy Storchakastorchaka@gmail.com
(cherry picked from commit76cd81d)

Co-authored-by: Senthil Kumaransenthil@uthcode.com

https://bugs.python.org/issue43882

…e and tabs. (pythonGH-25595)* issue43882 - urllib.parse should sanitize urls containing ASCII newline and tabs.Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>(cherry picked from commit76cd81d)Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
@miss-islington
Copy link
ContributorAuthor

@orsenthil: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
ContributorAuthor

@orsenthil: Status check is done, and it's a success ✅ .

@bedevere-botbedevere-bot added type-bugAn unexpected behavior, bug, or error type-securityA security issue labelsApr 29, 2021
@miss-islington
Copy link
ContributorAuthor

@orsenthil: Status check is done, and it's a failure ❌ .

@orsenthilorsenthil merged commit491fde0 intopython:3.9Apr 29, 2021
@miss-islingtonmiss-islington deleted the backport-76cd81d-3.9 branchApril 29, 2021 17:57
mlissner added a commit to freelawproject/courtlistener that referenced this pull requestApr 30, 2021
This goes to show that messing with security-critical code is a nastybusiness and often a mistake. Luckily, we have tests, but whathappened here is that I tweaked the code to separate out checks fromredirection. In so doing, I removed pulled the quoting code into thechecks, but took it out of the redirection part. So previously, we'dquote a URL before redirecting it, now we didn't.To fix this, I copied the fix from Python's standard lib that you cansee here:python/cpython#25725Instead of quoting it, we just make sure it doesn't have newlines. Ifit does, we bail.
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull requestMay 2, 2021
…newline and tabs. (pythonGH-25595) (pythonGH-25725)* bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (pythonGH-25595)Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>(cherry picked from commit76cd81d)Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>(backported to Python 2.7 by Michał Górny)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@orsenthilorsenthilorsenthil approved these changes

Assignees
No one assigned
Labels
type-bugAn unexpected behavior, bug, or errortype-securityA security issue
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@miss-islington@orsenthil@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp