MySQL
TMA-MYSQL-5.9
Ensure DML/DDL Grants are Limited to Specific Databases and Users
中等級 1人工審核mysql
說明
DML/DDL includes the set of privileges used to modify or create data structures. This includes INSERT, SELECT, UPDATE, DELETE, DROP, CREATE, and ALTER privileges.
檢查方式
稽核方法: 人工審核
此項建議無法自動檢查。當您傳入 --include-manual 時,掃描結果會列出此項目並附帶這些說明。
Run SELECT User, Host, Db FROM mysql.db WHERE Select_priv='Y' OR Insert_priv='Y' OR Update_priv='Y' OR Delete_priv='Y' OR Create_priv='Y' OR Drop_priv='Y' OR Alter_priv='Y'; and ensure every returned user is permitted these privileges on the indicated database.
修補方式
修補方法: 操作指南或基礎設施修補檔
REVOKE SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER ON <db>.* FROM '<user>'@'<host>'; for each unauthorized grant.
屬性
- 作業系統
- 不限
- 標籤
- mysqldatabaseauthorizationmanual
- 參考資料
- CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.9 Ensure DML/DDL Grants are Limited to Specific Databases and Users