TMAegis
Plus de règles pour mysql

TMA-MYSQL-4.3

Ensure 'allow-suspicious-udfs' is Set to 'OFF'

MoyenneNiveau 2Automatiséemysql

Description

This option prevents attaching arbitrary shared library functions as user-defined functions by checking for at least one corresponding method named _init, _deinit, _reset, _clear, or _add. Counts allow-suspicious-udfs settings in the server option groups (my_print_defaults mysqld) and on the running server command line.

Méthode de vérification

Méthode d'audit: Commande shell

shell
c=$(my_print_defaults mysqld 2>/dev/null) || exit 1; p=$(ps -eo comm=,args= 2>/dev/null) || exit 1; n=$( { printf '%s\n' "$c"; printf '%s\n' "$p" | awk '$1=="mysqld"||$1=="mariadbd"' | tr ' ' '\n'; } | grep -Eic '^--allow[-_]suspicious[-_]udfs(=(1|on|true|yes))?$' ); echo "$n"
Sortie attendue
0

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Remove allow-suspicious-udfs from the MySQL option files and from the server start-up command line, then restart.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
mysqldatabaseconfiguration
Référence
CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 4.3 Ensure 'allow-suspicious-udfs' is Set to 'OFF'

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target mysql --level 2