On a cPanel server there is always security risk of PHP functions for eg. exec if you want to disable this function on your cPanel server you can do so from your servers php.ini
You can find the php.ini of your server by the following command:
root@server# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
Then, edit that file and search for disable_functions and add the function exec in front of that. source
You can find the php.ini of your server by the following command:
root@server# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
Then, edit that file and search for disable_functions and add the function exec in front of that. source