TDSQL
TMA-TDSQL-4.8
Ensure High-Risk Parameters Cannot Be Arbitrarily Modified via `SET GLOBAL`
Açıklama
Users with the SUPER or SYSTEM_VARIABLES_ADMIN privilege can modify system variables online via SET GLOBAL, including security-related parameters (such as sql_mode, read_only).
Nasıl denetlenir
Denetim yöntemi: Manuel inceleme
Run SELECT User, Host FROM mysql.user WHERE Super_priv = 'Y' AND User NOT LIKE 'tdsqlsys%'; and check SYSTEM_VARIABLES_ADMIN grants (SELECT * FROM mysql.global_grants WHERE PRIV = 'SYSTEM_VARIABLES_ADMIN'). Only TDSQL system accounts may hold them; with audit logging enabled, review the audit trail for unexpected SET GLOBAL statements.
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
1. Allow only TDSQL system accounts (tdsqlsys_*) to hold the SUPER privilege. 2. Have business accounts modify parameters uniformly through the OSS management interface. 3. Enable audit logging of SET GLOBAL operations.
Özellikler
- İşletim sistemleri
- Herhangi biri
- Etiketler
- tdsqlprivileges
- Referans
- CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 4.8 Ensure High-Risk Parameters Cannot Be Arbitrarily Modified via `SET GLOBAL`