1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Hacked

Discussion in 'Site & Server Administration' started by kandeman, Mar 21, 2006.

  1. #1
    Hi,

    I have a serious problem.
    Today my site got hacked. The site is based on E107 cms.
    the hacker only replaced the index.php file and nothing more.
    The big problem is that I'm leaving on holliday for 2 weeks in a few days and now i'm worried because if my site gets hacked when I'm gone there will be no one to repair it.
    What can I do to get my website in optimal condition against hackers?

    Greetz
     
    kandeman, Mar 21, 2006 IP
  2. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Update any outdated software and maybe pay a programmer to check your site daily. Make sure he has login/password details incase he needs to edit anything.
     
    l234244, Mar 21, 2006 IP
  3. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1) Make a backup of your entire server (or at least your website files and all server log files) for later diagnosis.

    2) Restore your website and make sure you are patched against all known e107 vulnerabilities.

    3) Figure out how the attacker got access by reviewing your server backup files, then protect yourself against that attack.

    The bottom line (as you indicated) is that someone has achieved access to your server. All you know is they replaced your index file, you don't know what else they might have compromised or might now have the ability to compromise. You need to figure out from the server logs exactly how they compromised your system.

    In most cases like these it is normally either a vulnerability in the CMS itself, or a vulnerability in another program you are using. If you are on a shared server then it could even be a program someone else is using, making diagnosis even more difficult. For example there was a vulnerability awhile back with a major stats program whereby if it was installed on the server then a remote attacker could replace the index file on every website on that server. This would have been totally out of the control of the webmaster on a shared server.
     
    tflight, Mar 21, 2006 IP
  4. AfterHim.com

    AfterHim.com Peon

    Messages:
    1,923
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #4
    They usually get in through holes in the CMS, plug them as good as you can.

    You could also put up a static index file that says you are on vacation and will be back in a week.

    then remove the CMS files...reupload them when you get back.
     
    AfterHim.com, Mar 21, 2006 IP
  5. amnezia

    amnezia Peon

    Messages:
    990
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #5
    one of my e107 sites got hacked by a group from turkey a few weeks back, there are serveral exploit scripts in the wild.
     
    amnezia, Mar 21, 2006 IP
  6. kandeman

    kandeman Peon

    Messages:
    451
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,

    Thx for the quick reply's guys.
    I'll try and patch up all the holes but I'm indeed on a shared server.
    Btw, where can I find my server back files, I don't have cpanel acces on this website :s ?
     
    kandeman, Mar 21, 2006 IP
  7. guru-seo

    guru-seo Peon

    Messages:
    2,509
    Likes Received:
    152
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Make sure you have the latest software version. Probably a vulnerability in the software version. Sorry to hear.
     
    guru-seo, Mar 21, 2006 IP
    AGS likes this.
  8. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #8
    chmod 444 the file, so it can only be viewed. If he has your username and password...that's a different story.
     
    Nintendo, Mar 21, 2006 IP
  9. illusion

    illusion Peon

    Messages:
    427
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I say it is mostly the software that is vulnerable, a lot of people with e107 are getting hacked. Either swap software or buy a laptop :p
     
    illusion, Mar 21, 2006 IP
  10. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Where did posts 2,3,4,5,6 go?
     
    l234244, Mar 21, 2006 IP
  11. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
  12. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #12
    eh? I'm sure I replied to the 1st post
     
    l234244, Mar 21, 2006 IP
  13. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Yea, I had written a response to the first post as well.
     
    tflight, Mar 21, 2006 IP
  14. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #14
    Looks like this thread was hacked!!! :D
     
    Nintendo, Mar 21, 2006 IP
  15. kandeman

    kandeman Peon

    Messages:
    451
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #15
    this is strange indeed , i read the first 5 replies and now they are gone..
    Strange forces are working here.

    I'll try and update the script as much as possible.
    But i'm leaving for hollyday soon , so will chmod 444 help me protect the site when I'm gone or should I just put up an 'admin away for holiday' screen?
     
    kandeman, Mar 22, 2006 IP
  16. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #16
    It depends on how there changing it. If they have your ftp password, then it won't help at all!!!
     
    Nintendo, Mar 22, 2006 IP
  17. kandeman

    kandeman Peon

    Messages:
    451
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I looked in to the ftp loging and there was nothing abnormal..
     
    kandeman, Mar 23, 2006 IP
  18. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #18
    What the heck??!!! The time for the 'Last Post' in search results show....Today 10:57 am.

    Yet the last post to show is one made a day and a half ago...and it looks like more posts are gone!!!!

    As I said before the second round of posts were deleted...it depends on if they have your ftp password. If they have that, then it won't help at all. If there editing that file and don't have the ftp password, it should help.
     
    Nintendo, Mar 23, 2006 IP
  19. kandeman

    kandeman Peon

    Messages:
    451
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #19
    This is becoming very weird. Posts have been deleted from this thread 2 times :s
     
    kandeman, Mar 24, 2006 IP