TMA-MARIADB-5.2
Ensure 'FILE' is Not Granted to Non-Administrative Users
Mô tả
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 MariaDB server (this includes world-readable files). ; Write files to the local file system where the MariaDB server has write access.
Cách kiểm tra
Phương pháp kiểm tra: Xem xét thủ công
Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.
Run SELECT GRANTEE FROM INFORMATION_SCHEMA.USER_PRIVILEGES WHERE PRIVILEGE_TYPE = 'FILE'; Ensure only administrative users are returned in the result set.
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
REVOKE FILE ON *.* FROM '<user>'@'<host>'; for each non-administrative grantee.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- mariadbdatabaseauthorizationmanual
- Tham chiếu
- CIS MariaDB 10.11 Benchmark v1.0.0 - 5.2 Ensure 'FILE' is Not Granted to Non-Administrative Users