TMAegis
More rules for mysql

TMA-MYSQL-5.7

Ensure 'GRANT OPTION' is Not Granted to Non-Administrative Users

HighLevel 1Manual reviewmysql

Description

The GRANT OPTION privilege exists in different contexts (mysql.user, mysql.db) for the purpose of governing the ability of a privileged user to manipulate the privileges of other users.

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

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

How it is fixed

Fix method: Guidance or infrastructure patch

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

Properties

Operating systems
Any
Tags
mysqldatabaseauthorizationmanual
Reference
CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.7 Ensure 'GRANT OPTION' is Not Granted to Non-Administrative Users