Skip to content

[3.7] bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)#14560

Merged
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-477b1b2-3.7
Jul 2, 2019
Merged

[3.7] bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)#14560
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-477b1b2-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

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

ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.

Short notations like '127.1' for '127.0.0.1' were already filtered out.

The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue37463
(cherry picked from commit 477b1b2)

Co-authored-by: Christian Heimes christian@python.org

https://bugs.python.org/issue37463

ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.

Short notations like '127.1' for '127.0.0.1' were already filtered out.

The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue37463
(cherry picked from commit 477b1b2)

Co-authored-by: Christian Heimes <christian@python.org>
Copy link
Copy Markdown
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @miss-islington

@miss-islington
Copy link
Copy Markdown
Contributor Author

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

@miss-islington miss-islington merged commit 024ea21 into python:3.7 Jul 2, 2019
@miss-islington miss-islington deleted the backport-477b1b2-3.7 branch July 2, 2019 21:22
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.

4 participants