can a security hole in subdomain casue the main domain to be hacked ?

Discussion in 'Site & Server Administration' started by ramysarwat, Jun 1, 2010.

  1. #1
    if i have a script on a sub domain that have a security hole can this cause any danger on th parent domain in linux ?
     
    ramysarwat, Jun 1, 2010 IP
  2. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    Hello,

    That depends on how things are configured on your server, the best thing to do is to fix it asap.
     
    nabil_kadimi, Jun 1, 2010 IP
  3. fishmania

    fishmania Peon

    Messages:
    388
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Absolutely, if script or sub directory for that sub domain isn't password protected than yes.
     
    fishmania, Jun 1, 2010 IP
  4. sysadmin

    sysadmin Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes that is correct
     
    sysadmin, Jun 3, 2010 IP
  5. chtdatweb

    chtdatweb Well-Known Member

    Messages:
    1,473
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    160
    #5
    i would say it depends if the subdomain and main domain files are hosted on the same server or directory.
     
    chtdatweb, Jun 8, 2010 IP
  6. jeffatrackaid

    jeffatrackaid Active Member

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    75
    #6
    Depending on your hosting platform, PHP and security settings, a sub-domain exploit may be contained only within that sub-domain or could spill into the entire system. With many hosting platforms (cPanel/WHM, Plesk, Ensim), the subdomain often inherits ownership and permission data from the primary account. In this case, unless other restrictions are in place (e.g. open basedir/safe mode), the sub domain script likely has the same read/write/execute writes as the primary domain.
     
    jeffatrackaid, Jun 10, 2010 IP
  7. nikb

    nikb Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This is possible if subdomain and domain are on same server. I'm can say that most commonly this is very simple.
    This is also possible if your subdomain configuration scripts contains same passwords that your are using for admin, phpmyadmin, cpanel, ftp etc. of your primary domain.
     
    nikb, Jun 10, 2010 IP