Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2003
    Location
    NY, USA
    Posts
    40

    Default /usr/local/apache/proxy ?

    Does anyone know what purpose /usr/local/apache/proxy is there to achieve?

    I'm in the process of developing a procedure for hardening my servers, and I've found this path with is owned by nobody.nobody and as its on the main partition it does not have noexec set.

    This path appears to be vulnerable to the same types of issues as /tmp (before hardening).

    Would there be any side affect from removing this directory, or should I work around this (symlink to a path under /tmp which has noexec set)?
    http://www.hostspace.us
    We've got HostSpace, do you?
    AIM: hspaceus | Yahoo: hspaceus | MSN: admin@hostspace.us | ICQ: 279015428

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    38

    Default

    It is vulnerable and I found a DOS tool in there - and would love to know how to protect it (the server not the tool)

  3. #3
    Member
    Join Date
    Sep 2003
    Location
    NY, USA
    Posts
    40

    Default

    Well...

    after consulting with the cpanel developers I've been told that path is not needed unless you're actually running a apache proxy server (you don't by default).

    So... there's two fixes

    1) If you're not running a proxy server, simply remove the directory (rm -rf /usr/local/apache/proxy)

    2) If you do need this path, then you can create a directory under tmp (mkdir /tmp/usr-local-apache-proxy; chown nobody.nobody /tmp/usr-local-apache-proxy; chmod 755 /tmp/usr-local-apache-proxy), remove the existing directory (rm -rf /usr/local/apache/proxy), and then create a symlink (ln -s /tmp/usr-local-apache-proxy /usr/local/apache/proxy).

    Note, solution #2 will only work if you already have your /tmp directory hardened to include noexec. Otherwise it doesn't secure it at all To harden I recommend (and use) these instructions: http://www.webhostgear.com/34.html

    Regards,
    Michael

    BTW, I'm out of the office till Tuesday afternoon... running away with my wife for our anniversary
    http://www.hostspace.us
    We've got HostSpace, do you?
    AIM: hspaceus | Yahoo: hspaceus | MSN: admin@hostspace.us | ICQ: 279015428

  4. #4
    Member
    Join Date
    Oct 2003
    Posts
    38

    Default

    Happy anniversary!

    Thanks for this - its great stuff

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2003
    Location
    San Diego
    Posts
    102
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Good notes.
    Yes, I expect 7 in 10 cpanel hosts are being hacked "now" or are have been hacked through this directory recently.
    /usr/local/apache/proxy

    Script kiddies love to put their IRC wares in there as well as DOS stuff.


    Also, Do Now:

    cd /usr/local/apache/proxy
    (should be no files in there.)

    locate /iroffer
    (oh my... do a google to see what it is)

    cd /var/spool/mail
    (look for "nobody" permissioned accounts)


    Best Wishes,
    Jim

Similar Threads & Tags
Similar threads

  1. Install Apache in different folder than: /usr/local/apache
    By gamingaccess in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-07-2009, 04:12 PM
  2. APACHE: Using folder in /usr/local
    By andy7t in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-23-2007, 10:48 AM
  3. /usr/local/apache/domlogs
    By ptez in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-08-2006, 11:23 AM
  4. Securing /usr/local/apache/proxy
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-19-2005, 01:53 PM
  5. Replies: 0
    Last Post: 04-08-2004, 01:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube