Empty database password detected

Description

A database with an empty password is a security risk as its data is unprotected. Database servers should be configured with appropriate authentication and restrictions, and their passwords should be stored and accessed securely - for example, through a Key Management Service (KMS).

Remediations

❌ Do not configure database servers with empty passwords

✅ Always ensure secure password management practices

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=java_lang_empty_database_password

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

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

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