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.
修正方法
修正方法: ガイダンスまたは IaC パッチ
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