Results 1 to 6 of 6

Thread: whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case 51819]

  1. #1
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case 51819]

    Because the whm, cpanel, webmail and webdisk proxy subdomains run through Apache before being routed to cPanel/WHM, etc, all traffic is processed through any configured ModSecurity rules. This causes problems for legitimate functions, especially in root WHM, which trigger such rules.

    To avoid this and to maintain consistency for the various ways to access WHM, it would be a best to have the following within the VirtualHost in httpd.conf for the proxy subdomain container:

    # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
    <VirtualHost ... *>
    ...
    <IfModule mod_security2.c>
    SecRuleEngine Off
    </IfModule>
    ...
    </VirtualHost>


    A side-effect of this problem when a ModSecurity rule is triggered is that the browser is redirected to a 403/406 page which strips the URL of the security token. Because this is going through Apache and not the cPanel server it results in a spurious "security token missing" error.

    I raised this with support in ticket ID 1774258.
    Last edited by chirpy; 07-29-2011 at 02:21 AM.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    244

    Default re: whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case 51819]

    Brought this up in 2008 and haven't heard from them since. It was acknowledged as a problem in a ticket, forum topic and even in bugzilla: http://bugzilla.cpanel.net/show_bug.cgi?id=8089

    I'm not sure what is so difficult about fixing this.

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default re: whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case 51819]

    This has an internal dev case #51819 now.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case 51819]

    We're hoping to get this resolved soon, we currently anticipate this will be resolved in version 11.32.

    VeZoZ, your input has been noted in our internal case. Thank you!

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case

    This is resolved in version 11.31.1.2 and later. To see if this version has propagated to your update tier, visit Downloads - cPanel Inc.

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: whm, cpanel, webmail and webdisk proxy subdomains and ModSecurity [Case

    This functionality has propagated to all update tiers so I am now closing and archiving this thread.

Similar Threads

  1. SSL for Webmail/cPanel/WHM proxy
    By monarobase in forum Feature Requests for cPanel & WHM
    Replies: 6
    Last Post: 10-06-2012, 08:46 AM
  2. Reverse proxy (cpanel. webmail. whm.) over HTTPS port 443 regardless of crt
    By pthirose in forum Feature Requests for cPanel & WHM
    Replies: 7
    Last Post: 09-15-2011, 09:28 AM
  3. SSL access to proxy domains (whm/cpanel/webmail)
    By tomi1122 in forum Security
    Replies: 11
    Last Post: 05-11-2011, 09:07 AM
  4. USe proxy only to access cpanel, whm and webmail
    By cesarlwh in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 03-04-2011, 11:15 AM