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

Description#

The code uses the MD5 algorithm to hash passwords, which is not secure because MD5 can be quickly cracked with modern tools. Instead, use a stronger password hashing algorithm like bcrypt.

Impact#

If this vulnerability is present, attackers could easily recover user passwords if they gain access to the hashed password database. This can lead to unauthorized account access, data breaches, and compromised user information.