Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 1, 2019

Conversation

@miss-islington
Copy link

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 (GH-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

This comment has been minimized.

Copy link
Member

warsaw commented Jul 17, 2019

@ned-deily

@miss-islington

This comment has been minimized.

Copy link
Author

miss-islington commented Jul 17, 2019

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

@maxking

This comment has been minimized.

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
5 of 6 checks passed
5 of 6 checks passed
Azure Pipelines PR #20190717.37 failed
Details
bedevere/issue-number Issue number 37461 found
Details
bedevere/maintenance-branch-pr Valid maintenance branch PR title.
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@miss-islington miss-islington deleted the miss-islington:backport-a4a994b-3.6 branch Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.