SV-235163r638812_rule
V-235163
SRG-APP-000133-DB-000179
MYS8-00-008300
CAT II
10
Remove permissions from users who should not have insert or update access to the mysql.plugin or mysql.component table.
Review Server documentation to determine the authorized owner and users or groups with modify rights for this SQL instance's binary files. Additionally check the owner and users or groups with modify rights for shared software library paths on disk.
If any unauthorized users are granted modify rights, this is a finding.
A plugin located in a plugin library file can be loaded at runtime with the INSTALL PLUGIN statement. The statement also registers the plugin in the mysql.plugin table to cause the server to load it on subsequent restarts. For this reason, INSTALL PLUGIN requires the INSERT privilege for the mysql.plugin table, and UNINSTALL requires DELETE.
Run the following statement to check for table specific privileges:
SELECT * FROM information_schema.TABLE_PRIVILEGES where (table_schema='mysql' and table_name=`plugin`) or (table_schema='mysql' and table_name='component';)
If privilege_type is INSERT or DELETE for an unauthorized user, this is a finding.
Run the following statement to check for global privileges:
select * from information_schema.user_privileges where privilege_type='INSERT' or privilege_type='DELETE';
If privilege_type is INSERT or DELETE for an unauthorized user, this is a finding.
V-235163
False
MYS8-00-008300
Review Server documentation to determine the authorized owner and users or groups with modify rights for this SQL instance's binary files. Additionally check the owner and users or groups with modify rights for shared software library paths on disk.
If any unauthorized users are granted modify rights, this is a finding.
A plugin located in a plugin library file can be loaded at runtime with the INSTALL PLUGIN statement. The statement also registers the plugin in the mysql.plugin table to cause the server to load it on subsequent restarts. For this reason, INSTALL PLUGIN requires the INSERT privilege for the mysql.plugin table, and UNINSTALL requires DELETE.
Run the following statement to check for table specific privileges:
SELECT * FROM information_schema.TABLE_PRIVILEGES where (table_schema='mysql' and table_name=`plugin`) or (table_schema='mysql' and table_name='component';)
If privilege_type is INSERT or DELETE for an unauthorized user, this is a finding.
Run the following statement to check for global privileges:
select * from information_schema.user_privileges where privilege_type='INSERT' or privilege_type='DELETE';
If privilege_type is INSERT or DELETE for an unauthorized user, this is a finding.
M
5277