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

Appearance settings

[3.3][security] bpo-22928: Disabled HTTP header injections in http.client#2861

Closed
vstinner wants to merge 1 commit into
python:3.3python/cpython:3.3from
vstinner:http_injection33Copy head branch name to clipboard
Closed

[3.3][security] bpo-22928: Disabled HTTP header injections in http.client#2861
vstinner wants to merge 1 commit into
python:3.3python/cpython:3.3from
vstinner:http_injection33Copy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jul 25, 2017

Copy link
Copy Markdown
Member

Original patch by Demian Brecht.

Changed for the 3.3 backport:

  • remove subTest() from change
  • _is_legal_header_name regex: replace .fullmatch with .match, but
    add \A at start and \Z at end of the regex

(cherry picked from commit a112a8a)

https://bugs.python.org/issue22928

Original patch by Demian Brecht.

Changed for the 3.3 backport:

* remove subTest() from change
* _is_legal_header_name regex: replace .fullmatch with .match, but
  add \A at start and \Z at end of the regex

(cherry picked from commit a112a8a)
@vstinner vstinner added the type-security A security issue label Jul 25, 2017
@vstinner vstinner changed the title [3.3][security] Issue #22928: Disabled HTTP header injections in http.client. [3.3][security] bpo-22928: Disabled HTTP header injections in http.client Jul 25, 2017
@vstinner

Copy link
Copy Markdown
Member Author

About the CI: test_pty failed once, but passed when run again.

It seems like on 3.3, if a test fails once, the overall test suite is considered as failed, even if the test pass when run again. On all other branches, regrtest would succeed in that case.

@vstinner

Copy link
Copy Markdown
Member Author

I scheduled a new Travis CI run and now all tests fail (test_pty didn't fail).

@vstinner

Copy link
Copy Markdown
Member Author

Oh, @serhiy-storchaka proposed almost the same PR a few days ago: PR #2817. I will close this one, once @serhiy-storchaka updated his PR with my suggestions.

@vstinner

Copy link
Copy Markdown
Member Author

Abandonned in favor of @serhiy-storchaka PR #2817 which now LGTM.

@vstinner vstinner closed this Jul 25, 2017
@vstinner vstinner deleted the http_injection33 branch July 25, 2017 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.