Missing database password detected
- Rule ID: java_lang_empty_database_password
- Languages: java
- Source: empty_database_password.yml
Description
Leaving a database password empty exposes its data to unauthorized access and manipulation. It's crucial to implement strong authentication measures to safeguard database content.
Remediations
- Do not configure database servers without setting a password. This leaves the database vulnerable to unauthorized access.
- Do adopt secure password management practices. Utilize a Key Management Service (KMS) to handle database passwords securely, ensuring they are not exposed in application code or configuration files.
References
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