结构: Simple
Abstraction: Variant
状态: Incomplete
被利用可能性: Medium
The software uses the RSA algorithm but does not incorporate Optimal Asymmetric Encryption Padding (OAEP), which might weaken the encryption.
Padding schemes are often used with cryptographic algorithms to make the plaintext less predictable and complicate attack efforts. The OAEP scheme is often used with RSA to nullify the impact of predictable common text.
范围 | 影响 | 注释 |
---|---|---|
Access Control | Bypass Protection Mechanism | Without OAEP in RSA encryption, it will take less work for an attacker to decrypt the data or to infer patterns from the ciphertext. |
The example below attempts to build an RSA cipher.
bad Java
While the previous code successfully creates an RSA cipher, the cipher does not use padding. The following code creates an RSA cipher using OAEP.
good Java