MariaDB
TMA-MARIADB-2.3
Do Not Specify Passwords in the Command Line
MittelStufe 1Manuelle Prüfungmariadb
Beschreibung
When a command is executed on the command line, for example mariadb -u admin -p password, the password may be visible in the user's shell/command history or in the process list.
So wird geprüft
Prüfmethode: Manuelle Prüfung
Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.
Check the process list (ps -ef) and shell histories for mariadb/mysqldump invocations with -p<password> or --password=<password>. Any visible password is a fail.
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Use -p without a value (prompt), an option file with mode 0600 instead of passwords on the command line, and clear exposed history entries.
Eigenschaften
- Betriebssysteme
- Beliebig
- Tags
- mariadbdatabasecredentialsmanual
- Referenz
- CIS MariaDB 10.11 Benchmark v1.0.0 - 2.3 Do Not Specify Passwords in the Command Line