TMAegisBeta
更多 mysql 规则

MySQL

TMA-MYSQL-5.2

Ensure 'FILE' is Not Granted to Non-Administrative Users

高级别 1人工审核mysql

说明

The FILE privilege is used to allow or disallow a user from reading and writing files on the server host. Any user with the FILE right granted has the ability to: ; Read files from the local file system that are readable by the MySQL server (this includes world-readable files). ; Write files to the local file system where the MySQL server has write access.

检查方式

审计方法: 人工审核

此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。

Run SELECT GRANTEE FROM INFORMATION_SCHEMA.USER_PRIVILEGES WHERE PRIVILEGE_TYPE = 'FILE'; Ensure only administrative users are returned in the result set.

修复方式

修复方法: 操作指南或基础设施补丁

REVOKE FILE ON *.* FROM '<user>'@'<host>'; for each non-administrative grantee.

属性

操作系统
任意
标签
mysqldatabaseauthorizationmanual
参考
CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.2 Ensure 'FILE' is Not Granted to Non-Administrative Users