TMA-MYSQL-5.2
Ensure 'FILE' is Not Granted to Non-Administrative Users
Deskripsi
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.
Cara pemeriksaan
Metode audit: Tinjauan manual
Rekomendasi ini tidak dapat diperiksa secara otomatis. Pemindaian akan menampilkannya beserta petunjuk ini saat Anda memberikan opsi --include-manual.
Run SELECT GRANTEE FROM INFORMATION_SCHEMA.USER_PRIVILEGES WHERE PRIVILEGE_TYPE = 'FILE'; Ensure only administrative users are returned in the result set.
Cara perbaikan
Metode perbaikan: Panduan atau patch infrastruktur
REVOKE FILE ON *.* FROM '<user>'@'<host>'; for each non-administrative grantee.
Properti
- Sistem operasi
- Apa saja
- Tag
- mysqldatabaseauthorizationmanual
- Referensi
- CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.2 Ensure 'FILE' is Not Granted to Non-Administrative Users