Sudden 403 (forbidden) formmail error

NetX

Well-Known Member
Jun 18, 2003
177
0
166
Suddenly all domains on server cannot access any formmail file (I get the 403 error)

No matter if the file is /cgi-sys/formmail.pl, /cgi-bin/formmail.pl or any other path or extension, ie. formmail.php

The error_log shows this:

[Thu Feb 17 12:45:03 2005] [error] [client 201.65.169.24] mod_security: Access denied with code 403. Pattern match "formmail.pl$|formmail.pl*/$" at THE_REQUEST. [hostname "thedomain.com"] [uri "/cgi-sys/formmail.pl"]

Permisson are ok (777 tested) no .htaccess file, etc.

Any help would be appreciated.
 
Last edited:

NetX

Well-Known Member
Jun 18, 2003
177
0
166
Update:

The configuration in mod_security had:

# formmail ban but allow modified cpanels formmail
SecFilter "formmail.php$|formmail.php*/$"
SecFilter "formmail.cgi$|formmail.cgi*/$"
SecFilter "formmail.pl$|formmail.pl*/$"
 
Last edited:

Fredi

Member
Apr 9, 2003
14
0
151
I have error:

You don't have permission to access /formmail/formmail.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
modsecurity not included

# formmail ban but allow modified cpanels formmail
SecFilter "formmail.php$|formmail.php*/$"
SecFilter "formmail.cgi$|formmail.cgi*/$"
SecFilter "formmail.pl$|formmail.pl*/$"


Thanks