Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 3 of 41 FirstFirst 1 2 3 4 5 13 ... LastLast
Results 31 to 45 of 613
  1. #31
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    PHPSuexec is on all servers including this one.

    PHP Safe Mode is off...

  2. #32
    Member
    Join Date
    Jul 2004
    Posts
    182

    Default

    So have you taken measures to counter the reduced security inherent in runnign PHP with Safe Mode Off?

  3. #33
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    Doesn't using phpsuexec defeat the need for PHP Safe Mode?

    I also have other restrictions on (almost all security tweaks are on i.e. open_basedir, etc)

  4. #34
    Member
    Join Date
    Jul 2004
    Posts
    182

    Default

    phpsuexec does not stop the exec() function for example (a dangerous function in the wrong hands), and even with Safe mode On you still have to disable functions etc in php.ini to be sure.

    As I understand it open_basedir limits php so that it can only run in user's own directory tree (/home/username/<etc>) but thats all. Can still run a dangerous script from there, right?

  5. #35
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    True.

    Still doesn't tell us how someone got in ftp easily without brute force or anything.
    I even have mod_security to prevent a lot of attempts... recently added dm.cgi etc to block those from running.

    Besides the user wouldn't be able to run root commands or get root passwd files would they?

    So it brings us to square one.

    There is nothing in logs that shows any attempt of any kind against any programs.
    EVEN one site that had nothing in it but index.html was used to put dm.cgi and spamvertisement in so that has nothing to do with what we are talking about above.

    Brenden

  6. #36
    Member
    Join Date
    Jul 2004
    Posts
    182

    Default

    EVEN one site that had nothing in it but index.html was used to put dm.cgi and spamvertisement in so that has nothing to do with what we are talking about above
    Well, as far as I'm concerned the answer is maybe, but not necessarily. Until the method of hacking is actually KNOWN how can you really rule anythng out?

  7. #37
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default

    O.k. we just ran into our first experience with this today. The password on the three sites are not crackable and the servers where updated with mod security. The accounts are on different servers and there is probably more that we have not found yet.

    My best attempt to find the method is to compare the accounts hacked to the ones not.

    I did notice php was on each of the sites so far so my guess at this point is someone is scanning the servers users and checking each website for php insecurities.

    Also some where php4 and some php5 so it's not that.

  8. #38
    Member
    Join Date
    Sep 2003
    Location
    UK, Luton
    Posts
    197

    Default

    Lets hope more people being affected will kick cPanel in the arse to take a look at it.

    Even if its not directly a cPanel issue, the number of people being affected that are running cPanel should mean cPanel have a duty to at least LOOK at the issue.

    I won't be satisfied cPanel is not to blame until I know definitively what is to blame.
    Regards,
    James Smith
    UH Hosting Ltd

  9. #39
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default

    I think if anything is connected to cpanel it's how they are getting a list of the domains. There are effected domains on almost every shared server so they don't have accounts on the server. It's something with php that even mod security and being updated cannot protect.

  10. #40
    Member
    Join Date
    Aug 2001
    Posts
    421
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I had a server where several sites were exploited. The hacker broke into a website that was running a very old version of WordPress. They installed something called zbrute on that account. They were able to get the password for the account because it was stored in a config.php file that was in the publiic_html directory. They uploaded a php shell script that allowed them to browse the server. There were some sites that had config files with username/password information that could be read by the shell script. There are numerous users who use the same password for their php/mysql apps that they use for cpanel access. Any directory that was chmod 777 they placed a hacked index file in. Any site that was running old, insecure versions of popular software applications was hacked and defaced. This had nothing to do with cpanel and had everything to do with websites that are still using the old xmlrpc.php files that had that huge security hole and website owners who won't update their software. One of the sites that was hacked belonged to a customer whom I had been telling for weeks to upgrade the software. He learned the hard way. I placed a rule in my modsecurity configuration that prevents http access to xmlrpc.php. I then went to every single website on the server and limited access to those sites running outdated software until they were updated. This had nothing to do with cpanel and they did not need root access to hack this server. All they need is a site running insecure php software.

  11. #41
    Member
    Join Date
    Jul 2004
    Posts
    182

    Default

    Yes, but with phpSuExec and openbase_dir, safe mode on etc. you would not normally expect a list of nearly all FTP passwords to be accessible would you? I agree it definitely could be an little known hole in PHP itself, but I am less inclined to suppose that insecure scripts can allow this level of breach on a well secured box.

    Perhaps we should be suspecting Perl scripts? Can they do more damage than PHP nowadays? Any comments from anyone on this specifically?

  12. #42
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default

    Well for sure they are adding the bad code through ftp, so how are they getting the passwords again?

    I don;t think they could have accounts on every server so it must be a ftp exploit? Maybe pure-ftp is not secure?

  13. #43
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Are any of the accounts/servers involved using MovableType? The kiddies got into one of my servers, and all it had on it was one site with MovableType. I suspected it might have been MT because they only got the files in that directory and subdirectories but not anything above it.

  14. #44
    Member
    Join Date
    Jul 2004
    Posts
    182

    Default

    Well then whether or not Movable Type is installed seems irrelevant because the whole idea is that the hackers must somehow be getting into root-level directories, maybe even /etc/passwd and so on.

    Does cpanel keep a database of users/pass of its own? What about pure-ftp, does it have any kind of separate user authentication list?

  15. #45
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default

    Quote Originally Posted by casey View Post
    Are any of the accounts/servers involved using MovableType? The kiddies got into one of my servers, and all it had on it was one site with MovableType. I suspected it might have been MT because they only got the files in that directory and subdirectories but not anything above it.
    Nope, we don't even allow that.

    Some how they are getting the account password without even having a account on the server and not cracking them. But the only sites effected have php files.

    I think they are using a php exploit to get the accounts password and ftping with it.

    if they have a root access they would just do a find and replace for all index pages, and not waste time trying to ftp..

Similar Threads & Tags
Similar threads

  1. Replies: 123
    Last Post: 06-17-2010, 10:07 PM
  2. SOLUTION for Gumblar/IFRAME/JS hacks with stolen FTP Passwords...
    By hidonet in forum cPanel and WHM Discussions
    Replies: 98
    Last Post: 12-22-2009, 11:44 PM
  3. iframe / javascript hacks?
    By jack01 in forum cPanel and WHM Discussions
    Replies: 612
    Last Post: 11-20-2009, 10:14 PM
  4. IP addresses from IFrame Hacks
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 22
    Last Post: 01-29-2008, 05:41 AM
  5. JavaScript & IFRAME Insert Hacks Through xfercpanel
    By dynaweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-15-2007, 02:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube