티스토리 수익 글 보기

티스토리 수익 글 보기

bpo-43882 – urllib.parse should sanitize urls containing ASCII newline and tabs. by orsenthil · Pull Request #25595 · python/cpython · GitHub
Skip to content

bpo-43882 – urllib.parse should sanitize urls containing ASCII newline and tabs.#25595

Merged
orsenthil merged 10 commits intopython:masterfrom
orsenthil:issue43882
Apr 29, 2021
Merged

bpo-43882 – urllib.parse should sanitize urls containing ASCII newline and tabs.#25595
orsenthil merged 10 commits intopython:masterfrom
orsenthil:issue43882

Conversation

@orsenthil
Copy link
Member

@orsenthil orsenthil commented Apr 25, 2021

bpo-43882: Strip ascii newline and tabs from the url input, following WHATWG specification

Presence newline or tab characters in URL allowed attackers to write scripts in URL, hijack the web-server.

Following the controlling specification for URLs defined by WHATWG urllib.parse strips ASCII newline and tabs from the url, preventing such attacks.

https://bugs.python.org/issue43882

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants