Weak Cryptography
A weak cryptography vulnerability occurs when an application uses outdated, poorly designed, or insufficient cryptographic algorithms, protocols, or implementations to protect sensitive data. This makes it easier for attackers to break encryption, steal data, or compromise systems.
Weak cryptography refers to the use of:
- Outdated algorithms, such as
MD5,SHA-1,DES,RC4 - Short or predictable keys, such as 40-bit encryption, hardcoded keys
- Insecure protocols, such as
SSLv2,SSLv3, earlyTLSversions - Poor randomness, such as using
rand()instead ofrandom\random_bytes() - Improper implementations, such as
ECBmode in block ciphers, custom cryptography.