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

Description#

The code uses the ECB (Electronic Codebook) mode for encryption, which always produces the same output for identical input blocks. This makes it easy for attackers to detect patterns and potentially reveal sensitive information.

Impact#

If exploited, attackers can analyze encrypted data to uncover patterns or even reconstruct parts of the original data, leading to exposure of confidential information. ECB mode also lacks integrity protection, increasing the risk of tampering or replay attacks.