Python : Weak encryption algorithm
Classification
Overview
The application uses a weak encryption algorithm.
Obsolete encryption algorithms do not provide sufficient protection for applications that work with valuable data. Security of a cryptographic algorithm is determined by the estimated expense of time and resources required to get access to the encrypted data. Constant development of new attacks and increase in hardware performance make previously considered safe algorithms obsolete. For example, DES because of the small key length (56 bits) can be cracked by an exhaustive search.
In order to protect valuable data, use well tested implementations of standard encryption algorithms with sufficiently long keys.
Sensitive Data Exposure vulnerabilities take the third place in the “OWASP Top 10 2017” web-application vulnerabilities ranking.
References
- OWASP Top 10 2013-A6-Sensitive Data Exposure
- PyCrypto - The Python Cryptography Toolkit
- Cryptography library
- PassLib library
- OWASP Top 10 2017-A3-Sensitive Data Exposure
- CWE-327
- CWE CATEGORY: OWASP Top Ten 2017 Category A6 - Security Misconfiguration
- Data Encryption Standard - wikipedia.org
- Bleichenbacher’s attack
