TMA-MARIADB-2.10
Limit Accepted Transport Layer Security (TLS) Versions
CaoCấp 2Tự độngmariadb
Mô tả
MariaDB supports multiple versions of TLS. The higher the version the stronger the security and/or better the performance. The MariaDB 10.11 default (TLSv1.1,TLSv1.2,TLSv1.3) fails. Runs mariadb -NBe with the client defaults: as root on the server the unix_socket plugin usually authenticates; otherwise put an administrative account in ~/.my.cnf (mode 0600), not MYSQL_PWD (see 1.4/1.6).
Cách kiểm tra
Phương pháp kiểm tra: Truy vấn SQL
sql_query
out=$(mariadb -NBe "SELECT IF(FIND_IN_SET('TLSv1.0', @@global.tls_version) = 0 AND FIND_IN_SET('TLSv1.1', @@global.tls_version) = 0, 'compliant', 'noncompliant')" 2>/dev/null) || exit 1; printf '%s\n' "$out"- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Set tls_version=TLSv1.2,TLSv1.3 under [mariadbd] in /etc/mysql/mariadb.conf.d/50-server.cnf (or /etc/my.cnf.d/server.cnf), then restart MariaDB.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- mariadbdatabasetls
- Tham chiếu
- CIS MariaDB 10.11 Benchmark v1.0.0 - 2.10 Limit Accepted Transport Layer Security (TLS) Versions
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target mariadb --level 2