MariaDB
TMA-MARIADB-2.3
Do Not Specify Passwords in the Command Line
MédiaNível 1Revisão manualmariadb
Descrição
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.
Como é verificado
Método de auditoria: Revisão manual
Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --include-manual.
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.
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
Use -p without a value (prompt), an option file with mode 0600 instead of passwords on the command line, and clear exposed history entries.
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- mariadbdatabasecredentialsmanual
- Referência
- CIS MariaDB 10.11 Benchmark v1.0.0 - 2.3 Do Not Specify Passwords in the Command Line