-
Notifications
You must be signed in to change notification settings - Fork 238
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
Fix for CVE-2017-11424 #63
Conversation
Add "RSA PUBLIC KEY" to the forbidden key strings in HMAC. Prevents the use of PKCS1 keys, cited by this CVE as exposing a key-confusion attack. Also add a test case for it, doing the obvious thing. Closes mpdavis#62
Looks good to me. The PyPy build failed because of PyCrypto failing to compile. |
I'm happy with this change, but I want to see what is up with the failing build before merging. |
@sirosen I noticed your builds are running on the newer trusty builders. Can you try adding |
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
=======================================
Coverage 94.53% 94.53%
=======================================
Files 12 12
Lines 841 841
=======================================
Hits 795 795
Misses 46 46
Continue to review full report at Codecov.
|
Yeah, I don't mind slipping that change in. Doing that now. |
Pin to older infra to hopefully resolve pycrypto compilation issues.
98bd2b9
to
5bc7470
Compare
lgtm |
Released in 1.4.0 |
Add "RSA PUBLIC KEY" to the forbidden key strings in HMAC. Prevents the use of PKCS1 keys, cited by this CVE as exposing a key-confusion attack.
Also add a test case for it, doing the obvious thing.
Closes #62