TMAegisBeta
mariadb için daha fazla kural

MariaDB

TMA-MARIADB-2.3

Do Not Specify Passwords in the Command Line

OrtaDüzey 1Manuel incelememariadb

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Manuel inceleme

Bu öneri otomatik olarak denetlenemez. --include-manual parametresini verdiğinizde tarama bunu bu talimatlarla birlikte listeler.

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.

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Use -p without a value (prompt), an option file with mode 0600 instead of passwords on the command line, and clear exposed history entries.

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
mariadbdatabasecredentialsmanual
Referans
CIS MariaDB 10.11 Benchmark v1.0.0 - 2.3 Do Not Specify Passwords in the Command Line