Property
Languagejava
Severityhigh
CWECWE-327: Use of a Broken or Risky Cryptographic Algorithm
OWASPA03:2017 - Sensitive Data Exposure
Confidence LevelHigh
Impact LevelMedium
Likelihood LevelMedium

Description#

The code uses AES encryption without specifying a mode or padding, which defaults to ECB mode in Java. ECB mode is insecure because it doesn’t properly protect the structure of encrypted data, making sensitive information easier to reveal.

Impact#

Attackers can analyze patterns in the encrypted data, potentially exposing confidential information like passwords or personal data. This can lead to data breaches, privacy violations, and non-compliance with security standards.