Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mod_Security blocking WordPress logins

Discussion in 'Security' started by mehdix92, Jun 13, 2018.

Tags:
  1. mehdix92

    mehdix92 Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Algeria
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm currently experiencing issues with CSF in the following cases :

    1. - Mod_Security rules give error 406 wordpress when trying to login through wp-admin - Disabling Mod_security on the Website's Cpanel solves the issues but is insecure.

    2. Rules for SMTP are way too strict resulting in an impossibility to connect with outlook - Adding IP to whitelist CSF solves the issue.


    Any solutions please ?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @mehdix92,

    1. Can you let us know an example of the output to /usr/local/apache/logs/modsec_audit.log when the WordPress login failed? This should help to narrow down the specific rule that blocked the login.

    2. Can you let us know the specific error message or issue you encountered with Outlook before whitelisting the IP address in your firewall? How were you reproducing the issue, and what operating system and Outlook version were used on the computer you tested with?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mehdix92

    mehdix92 Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Algeria
    cPanel Access Level:
    Root Administrator
    This is a portion of it :

    ModSecurity: Access denied with code 406 (phase 2). Pattern match "/wp-admin/css/.*\\\\\\\\.php" at REQUEST_URI. [file "remote server"] [line "-1"] [id "430027"] [msg "Malware.Expert - request_uri: Wordpress - prevent PHP files from executing"] [hostname "domainexample.com"] [uri "/wp-admin/css/colors/blue/Marvins.php"] [unique_id "Wx-UYRBXDENGcxXBfEJLaQAAAQM"]
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice