Property
Languagepython
Severitylow
CWECWE-327: Use of a Broken or Risky Cryptographic Algorithm
OWASPA03:2017 - Sensitive Data Exposure
Confidence LevelMedium
Impact LevelLow
Likelihood LevelLow

Description#

The code uses ECB (Electronic Codebook) mode for block cipher encryption, which always produces the same encrypted output for identical input blocks. This exposes patterns in the original data, making it easier for attackers to analyze and potentially reveal sensitive information.

Impact#

If exploited, attackers can spot repeating patterns in the encrypted data, allowing them to infer or reconstruct parts of the original plaintext. This can lead to sensitive data exposure, undermining the confidentiality of information such as passwords, personal details, or proprietary data.