-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Use of hashlib.sha1
causes issue in FIPS build
#5448
Comments
Already reported to cachelib: pallets-eco/cachelib#361 |
Wait nevermind, the traceback is for Flask-Session but you're pointing at Flask code in the link. So the problem is that the default of |
Looking into this more, only MD5 is called out as not being available in FIPS mode: https://docs.python.org/3/library/hashlib.html#hash-algorithms. Has this changed recently to include SHA-1? If so, you should report that to Python as well to update the documentation to reflect what FIPS actually does. I found this announcement https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm which states that FIPS 180-5 will be released by 2030, but I can't find anything detailing how you'd get a FIPS build of OpenSSL that doesn't support SHA-1 today. I need some more info on how OpenSSL/Python is being built, because it looks like the build is different than what FIPS actually requires. |
hashlib.sha1
causes issue in FIPS build
The use of SHA1 found here:
flask/src/flask/sessions.py
Line 289 in b90a4f1
prevents applications from running in a FIPS Enabled Environment/OS. The OS will abruptly stop the application from running when it detects a non compliant Hash Algorithm is used.
Describe how to replicate the bug:
Enforce FIPS Enabled on the OS (such as RHEL9)
Unexpected Behavior Error output:
Environment:
RHEL9 FIPS Enabled and Enforced
The text was updated successfully, but these errors were encountered: