Rule ID
SV-289318r1319233_rule
Version
V1R1
CCIs
If the system were to allow any user to make changes to software libraries, then those changes might be implemented without undergoing the appropriate testing and approvals that are part of a robust change management process. Accordingly, only qualified and authorized individuals will be allowed to obtain access to information system components for purposes of initiating changes, including upgrades and modifications. Unmanaged changes that occur to the database software libraries or configuration can lead to unauthorized or compromised installations.
Review the system documentation to identify the authorized users and groups permitted to modify MySQL software modules, binary files, plugin libraries, and component libraries.
Review the operating system ownership and permissions for the MySQL binary and shared software library locations.
If unauthorized users or groups have modify access to these files or directories, this is a finding.
Review table-specific privileges that permit installation or removal of MySQL plugins or components:
SELECT GRANTEE, TABLE_SCHEMA, TABLE_NAME, PRIVILEGE_TYPE
FROM information_schema.TABLE_PRIVILEGES
WHERE TABLE_SCHEMA = 'mysql'
AND TABLE_NAME IN ('plugin', 'component')
AND PRIVILEGE_TYPE IN ('INSERT', 'DELETE');
"INSERT" on "mysql.plugin" permits installation of plugins, and "DELETE" permits their removal.
"INSERT" and "DELETE" on "mysql.component", similarly, permit installation and removal of components.
Also review global "INSERT" and "DELETE" privileges:
SELECT GRANTEE, PRIVILEGE_TYPE
FROM information_schema.USER_PRIVILEGES
WHERE PRIVILEGE_TYPE IN ('INSERT', 'DELETE');
If an unauthorized account has privileges that permit modification of the "mysql.plugin" or "mysql.component" tables, this is a finding.Remove permissions from users who should not have insert or update access to the "mysql.plugin" or "mysql.component" table.