How do I test whether cxs upload scanning is working correctly?

You will need a cPanel account with a domain you can browse to, to use for testing.

Set up cxs logging (see FAQ) and also ensure that you have configured cxs to send an alert to a working email address that you will be monitoring.

1. Download the contents of /etc/cxs/test/ to your PC.

2. Login to FTP as a cPanel user and upload the following files:

test.cgi
test.html
test.php

Change the file permissions on test.cgi to 755.

3. Browse to the test.html webpage in your web browser, i.e. www.yourdomain.com/test/test.html. You can use the Perl and PHP upload forms to test different types of uploads, starting with udp.pl which is included with the cxs test files. Be sure to monitor either the cxs log or the alert emails to check whether the uploads are being detected as you expect.

4. Do the same tests with FTP uploading using the cPanel account. With FTP uploads, if you have quarantine or delete configured, when you upload a test exploit it will appear as though the file is uploaded successfully but if you refresh the directory listing the file should not be there.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I set up logging for cxs ftp and web script upload scanning?

1. Create a log file, for example /var/log/cxs.log, and chmod it 666. 2. Edit the files...

How do I configure cxs to scan and quarantine suspicious files on ftp upload?

You should be comfortable logging into ssh as root and running Linux commands to follow these...

How do I configure cxs to scan and quarantine suspicious files uploaded through php and cgi scripts using mod_security?

You should be comfortable logging into ssh as root and running Linux commands to follow these...

CXS does not seem to be detecting files uploaded via web scripts. What should I check to find out why it's not working?

1. Check that the alert emails are being sent and received. If you have --mail root in your...

How can i install CXS on my server?

To install cxs on using the Installer Script you must first register your server with us by...