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

Add sha1 to the list of insecure hashes #561

Merged
merged 1 commit into from Jan 9, 2020
Merged

Add sha1 to the list of insecure hashes #561

merged 1 commit into from Jan 9, 2020

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Jan 9, 2020

The hashlib.new test plugin was only checking for MD4 and MD5.
This patch extends the list of insecure hashes to include SHA1,
which has known exploits.

Fixes #560

Signed-off-by: Eric Brown browne@vmware.com

@ericwb ericwb changed the title Add sha1 to the list of insecure hashses Add sha1 to the list of insecure hashes Jan 9, 2020
The hashlib.new test plugin was only checking for MD4 and MD5.
This patch extends the list of insecure hashes to include SHA1,
which has known exploits.

Fixes #560

Signed-off-by: Eric Brown <browne@vmware.com>
Copy link
Member

@lukehinds lukehinds left a comment

Choose a reason for hiding this comment

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

Looks good to me, is the medium raise as sha1 is now a proven attack?

@ericwb
Copy link
Member Author

ericwb commented Jan 9, 2020

Looks good to me, is the medium raise as sha1 is now a proven attack?

Yeah, in the news recently, a more significant exploit was made public. https://arstechnica.com/information-technology/2020/01/pgp-keys-software-security-and-much-more-threatened-by-new-sha1-exploit/

@ericwb ericwb merged commit 985749a into PyCQA:master Jan 9, 2020
@ericwb ericwb deleted the hashlib branch January 11, 2020 03:58
@ericwb ericwb added this to the Release 1.6.3 milestone Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

B324: hashlib_new not checking for SHA1
2 participants