Recently-discovered flaws in the
cgiecho scripts have caused cPanel, Inc. to remove support for them in cPanel & WHM. The upstream author of the
cgiemail scripts has not provided maintenance in over a decade. While cPanel, Inc. has provided patches for issues and vulnerabilities when we discover them, modern shared hosting environments should not depend on this script.
To remove the
cgiecho scripts from your system, perform the correct steps for your version of cPanel & WHM:
cgiechoscripts from the
cgi-bindirectories. To do this, manually run the
/usr/local/cpanel/scripts/clean_cgimail script removes the
cpanel-cgiemail RPM from the system. It also removes copies of the
cgiecho scripts from users'
To use this script, run the following command:
/usr/local/cpanel/scripts/clean_cgimail script accepts the following arguments:
|Remove the |
|Remove the |
|Only view a list of files that the script will remove.|
|Send a notification to the system administrator when the script runs.|
For example, run the following command to remove the
cpanel-cgiemail RPM and remove the
cgiemail script from the
username user's home directory:
/usr/local/cpanel/scripts/clean_cgiemail --rpm --docroot --user=username
This command's output will resemble the following example:
info [clean_cgiemail] Removing RPM: cpanel-cgiemail-1.6-5.cp1136.x86_64 ... info [clean_cgiemail] Success. info [clean_cgiemail] Removing file: /home/foobar/public_html/cgi-bin/cgiemail ... info [clean_cgiemail] Success. info [clean_cgiemail] Found 1 scripts in user docroots.