Skip to content

[3.6] bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794)#14817

Merged
ned-deily merged 1 commit intopython:3.6from
miss-islington:backport-a4a994b-3.6
Aug 1, 2019
Merged

[3.6] bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794)#14817
ned-deily merged 1 commit intopython:3.6from
miss-islington:backport-a4a994b-3.6

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 17, 2019

  • bpo-37461: Fix infinite loop in parsing of specially crafted email headers.

Some crafted email header would cause the get_parameter method to run in an
infinite loop causing a DoS attack surface when parsing those headers. This
patch fixes that by making sure the DQUOTE character is handled to prevent
going into an infinite loop.
(cherry picked from commit a4a994b)

Co-authored-by: Abhilash Raj maxking@users.noreply.github.com

https://bugs.python.org/issue37461

…aders (pythonGH-14794)

* bpo-37461: Fix infinite loop in parsing of specially crafted email headers.

Some crafted email header would cause the get_parameter method to run in an
infinite loop causing a DoS attack surface when parsing those headers. This
patch fixes that by making sure the DQUOTE character is handled to prevent
going into an infinite loop.
(cherry picked from commit a4a994b)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
@warsaw
Copy link
Member

warsaw commented Jul 17, 2019

@ned-deily

@miss-islington
Copy link
Contributor Author

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

@maxking
Copy link
Contributor

maxking commented Jul 17, 2019

I guess there is need for a restart, there seems to be a test which was stuck for a long time and tests timed out:

test_thread_safety (test.test_multiprocessing_spawn.WithProcessesTestFinalize) ... Timeout (0:20:00)!

The tests on Appveyor and Travis went through smoothly.

@ned-deily ned-deily merged commit 1789bbd into python:3.6 Aug 1, 2019
@miss-islington miss-islington deleted the backport-a4a994b-3.6 branch August 1, 2019 16:36
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.

6 participants