Property
Languagepython
Severitymedium
CWECWE-330: Use of Insufficiently Random Values
OWASPA02:2021 - Cryptographic Failures
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelLow

Description#

Generating UUIDs using uuid.uuid1() creates identifiers based on predictable system information like the MAC address and timestamp. This makes UUIDs guessable and unsuitable for security-sensitive uses.

Impact#

Attackers could predict or forge UUIDs to access or manipulate data tied to those identifiers, potentially leading to unauthorized access, data leaks, or replay attacks. This undermines the integrity and confidentiality of your application’s data.