Usage of weak encryption algorithm on a password (RSA)

Description

A weak encryption library can lead to data breaches and greater security risk.

Remediations

According to OWASP, 1024-bit RSA (Rivest-Shamir-Adleman) is considered a weak encryption algorithm and therefore shouldn't be used.

✅ Use a recommended hashing library such as bcrypt or Argon2id for passwords

BCrypt::Password.create("password_123")
hasher = Argon2::Password.new()
hasher.create("password_123")

Resources

Associated CWE

OWASP Top 10

Configuration

To skip this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --skip-rule=ruby_lang_weak_password_encryption_rsa

To run only this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --only-rule=ruby_lang_weak_password_encryption_rsa

Ready to take the next step? Learn more about Bearer Cloud.