Hello,
I would like to evaluate new features in upcoming major release. The most interesting seems to @rbl and @inspectFile mod_sec features. It would be great if litespeed come with some help how to perform simple configuration and testing. So far I configured
Request Filter >
Enable Request Filtering
Yes
Default Action
deny,log,status:403
Scan Request Body
Yes
Disable .htaccess Override
Yes
Enable Security Audit Log
Yes
and Request Filtering Rule Set with
SecRule FILES_TMPNAMES "@inspectFile /opt/modsecurity/bin/file-inspect.pl" phase:2,t:none,log,block
where /opt/modsecurity/bin/file-inspect.pl comes from mod_sec manual.
Then created simple html/php upload script from site
<!DOCTYPE html>
<html>
<body>
<form action="up.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
</body>
</html>
where EICAR-AV-Test test signature was uploaded, but nothing happens! And nothing in logs.
I would like to evaluate new features in upcoming major release. The most interesting seems to @rbl and @inspectFile mod_sec features. It would be great if litespeed come with some help how to perform simple configuration and testing. So far I configured
Request Filter >
Enable Request Filtering
Yes
Default Action
deny,log,status:403
Scan Request Body
Yes
Disable .htaccess Override
Yes
Enable Security Audit Log
Yes
and Request Filtering Rule Set with
SecRule FILES_TMPNAMES "@inspectFile /opt/modsecurity/bin/file-inspect.pl" phase:2,t:none,log,block
where /opt/modsecurity/bin/file-inspect.pl comes from mod_sec manual.
Then created simple html/php upload script from site
<!DOCTYPE html>
<html>
<body>
<form action="up.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
</body>
</html>
where EICAR-AV-Test test signature was uploaded, but nothing happens! And nothing in logs.