New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Access Error

Started by gilliard, May 27, 2016, 10:19:45 PM

Previous topic - Next topic

gilliard

Hello I can not access the page after I installed mod_security, put a folder in the account and will not appear ... :'( :'( :'( :'( :'(

http://imgur.com/v0PeP9q

Sandeep

check the apache error log and find your ip, their will be a ID which you have to whitelist.

gilliard

I did not understand, what to do?
where I find the logs?

Sandeep

Quote from: gilliard on May 28, 2016, 07:52:53 PM
I did not understand, what to do?
where I find the logs?
/usr/local/apache/logs

gilliard

okay, what should I look for?

gilliard

Found it:

linhasmart.tk"] [uri "/"] [unique_id "V0necn8AAAEAABpbW@cAAAAG"]
"linhasmart.tk"] [uri "/"] [unique_id "V0n2AH8AAAEAABoPTEgAAAAF"]

Sandeep

Not this one id will be like this id:200000

gilliard


gilliard

[Sun May 29 15:49:36 2016] [error] [client 186.209.253.230] ModSecurity: Access denied with code 403 (phase 4). Pattern match "(?:<(?:TITLE>Index of.*?<H|title>Index of.*?<h)1>Index of|>\\\\[To Parent Directory\\\\]<\\\\/[Aa]><br>)" at RESPONSE_BODY. [file "/usr/local/apache/modsecurity-crs/base_rules/modsecurity_crs_50_outbound.conf"] [line "136"] [id "970013"] [rev "2"] [msg "Directory Listing"] [data "Matched Data: <title>Index of /</title>\\x0a </head>\\x0a <body>\\x0a<h1>Index of found within RESPONSE_BODY: <!DOCTYPE HTML PUBLIC \\x22-//W3C//DTD HTML 3.2 Final//EN\\x22>\\x0a<html>\\x0a <head>\\x0a  <title>Index of /</title>\\x0a </head>\\x0a <body>\\x0a<h1>Index of /</h1>\\x0a<ul></ul>\\x0a</body></html>\\x0a"] [severity "ERROR"] [ver "OWASP_CRS/2.2.9"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/LEAKAGE/INFO_DIRECTORY_LISTING"] [tag "WASCTC/WASC-13"] [tag "OWASP_TOP_10/A6"] [tag "PCI/6.5.6"] [hostname "linhasmart.tk"] [uri "/"] [unique_id "V0tH0H8AAAEAABpbXDEAAAAG"]

pixelpadre

Quote from: Sandeep on May 28, 2016, 05:25:51 AM
check the apache error log and find your ip, their will be a ID which you have to whitelist.

White listing his IP address works also.

gilliard

I'm not understanding what you have to do

Sandeep

Add it in  Disabled Rules --> /usr/local/apache/conf/mod_sec_disabled_rules.conf  (you can just click the link in the mod security section)
Add the rule id in the file SecRuleRemoveById  [the rule id you found] and click save changes.


Sandeep


gilliard

It works, but the folder does not appear ... something is missing?

http://imgur.com/bWD1hzW