Been hacked fourth time in WP

Discussion in 'WordPress' started by xira, Aug 1, 2011.

  1. #1
    Someone (or some program) is hacking my site. I changed my password for admin twice, and there are no record of updates (except mine when I delete the hack code). The hack is simple enough, it adds a <script> to the end of each page, pointing it to some hack site. Getting rid of the hack means going into each of my 12 pages and deleting it... only to have a NEW <script> hack put there a week or so later!

    Anyone else experience this kind of a thing? Any idea how to track it and stop it?
     
    xira, Aug 1, 2011 IP
  2. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,614
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Can you show us an example of a script that has been hijacked?
     
    Big0ne, Aug 1, 2011 IP
  3. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #3
    xira, Aug 1, 2011 IP
  4. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,614
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #4
    I hope you keep it that way for a long time! :)
     
    Big0ne, Aug 1, 2011 IP
  5. MuseHack

    MuseHack Member

    Messages:
    36
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    @xira There are a couple of Wordpress plugins you may want to take a look at that may help. Yes, SQL injection is common. The most problems are on sites that do not keep up with the latest WP versions or let an automated install program name their SQL database wrdp1 or a second one wrdp2.

    http://wordpress.org/extend/plugins/secure-wordpress/ is a free plugin that checks your site and tells you where you may have problems.

    http://wordpress.org/extend/plugins/login-lockdown/ shuts down a login based on multiple failed attempts from a specific IP

    If you don't have your back-ups automated there is also WP-DB-Backup for that. Thanks for posting the list of links.
     
    MuseHack, Aug 1, 2011 IP
  6. xtrashots9

    xtrashots9 Active Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Hi search for "how to secure your wordpress blog" or similar to it and follow their steps to secure your website..... hope it will help you
     
    xtrashots9, Aug 2, 2011 IP
  7. worldzaki

    worldzaki Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #7
    worldzaki, Aug 2, 2011 IP
  8. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #8
    This is nasty, It's most likely a script hidden somewhere on your website that is editing all your files every now and then. When you remove it does it come back, and how soon/often?
     
    adbox, Aug 2, 2011 IP
  9. worldzaki

    worldzaki Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    You can test more malwer with google webmaster tool
     
    worldzaki, Aug 2, 2011 IP
  10. helpinghost

    helpinghost Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #10
    Make sure to also keep your FTP account secure.
    In many cases we actually see the break in happen via FTP because the user has a Trojan/Worm on their computer reading out the FTP Username/Password.
     
    helpinghost, Aug 2, 2011 IP
  11. MIRENGE

    MIRENGE Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It has not happened to me yet but i know that hacking has become very common recently.
     
    MIRENGE, Aug 2, 2011 IP
  12. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #12
    Make your theme folders non-writable.
     
    Abhik, Aug 2, 2011 IP
  13. Athisa

    Athisa Notable Member

    Messages:
    2,644
    Likes Received:
    331
    Best Answers:
    0
    Trophy Points:
    215
    #13
    Use Login Lockdown plugin! It's free!
     
    Athisa, Aug 4, 2011 IP
  14. khanter

    khanter Peon

    Messages:
    210
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thx. Installed the secure-wordpress plugin and the clouds parted. Is the problem resolved? Do I need to dump re-install and worry worry worry? Or have the leaks been plugged? Where can one find out more? How deep do they get into ones site? How do they do it?
     
    khanter, Sep 9, 2011 IP
  15. samie

    samie Member

    Messages:
    269
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #15
    Hacked Wordpress sites have always been an issue. Not just recently. This is usually why Wordpress periodically comes out with updates to patchup any vulnerabilities. In some cases it is the Web Host that had been compromised, so you may want to check with them and/or change ALL logins associated with your account and site. Control Panel, Databses, Admin Logins, FTP logins, Email Accounts.

    But I'm assuming the reason you are continuing to get compromised is because the malicious files or scripts within your site have never been completed removed just kind of like what was already explained here. For example, you might have some coding added to each of your pages, but you could have a "c99.php" script (or multiple) hidden around some folders in your website. It's pretty much a single file that give them full access to your entire website and they can do whatever they want.

    Look at this example:
    http://corz.org/corz/c99.php

    haha funny stuff. But anyways, if you're using the newest version of Wordpress then it will generally be secure already. Until someone discovers some more vulnerabilities with it and then a new version will come out. Maybe someday there will be no vulnerabilities with Wordpress :)
     
    samie, Sep 10, 2011 IP
  16. CammyD

    CammyD Greenhorn

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #16
    Upgrade your WordPress ASAP, old version has a XSS exploit which allows hackers to redirect your site to another.
     
    CammyD, Sep 13, 2011 IP
  17. myonnet

    myonnet Active Member

    Messages:
    135
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #17
    I tend to believe this could be your case as happened to me before. The hosting server was hacked and all the WP installs were compromised with some php files that were added to some folders. Took me a day to get rid of them, and then I changed the hosting provider. Good luck!
     
    myonnet, Sep 14, 2011 IP
  18. cokie

    cokie Active Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #18
    look for malicious files in your web folder and delete it, clean the hack script code in every page that got it, and most important..clean your computer (reinstall the OS if needed) from any viruses, trojan etc..i recommend twister av, change or upgrade your FTP software, and change your FTP password and don't save the new password in your FTP software or computer. That's it...
     
    Last edited: Sep 15, 2011
    cokie, Sep 15, 2011 IP
  19. Celtivo

    Celtivo Well-Known Member

    Messages:
    219
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #19
    Wordpress getting hacked? You sure?
     
    Celtivo, Sep 15, 2011 IP
  20. waziuz

    waziuz Active Member

    Messages:
    783
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #20
    I have faced the problem in the past. On more research I found that it was a problem on the hosting company's server being hacked rather than my wordpress installation hacked. If you are keeping everything updated then it is not you but your hosting company who has been hacked and they possibly inject it from the SQL server. I realized it instantly as it was a reseller account and all wordpress websites faced the same thing. And once I complained it to the host and restored the websites from an old backup it never appeared again. So, check with your hosting and other customers hosted on those servers before blaming wordpress. Wordpress is one of the safest CMS and if you use the correct combination of plugins and permissions then it is nearly impossible to get hacked in wordpress.
     
    waziuz, Sep 17, 2011 IP