Wordpress infected with Malware - How to remove it

Discussion in 'Security' started by sosmuthu, Nov 8, 2009.

  1. #1
    On of my blog running on Wordpress had strange URLs like <script src=http://thalassapromotion.eu/scripts/pageear_s.php ></script>
    in it.

    I deleted the codes from the files,but still i find the above code in the source code of my site.

    I think it has not been completely removed.Does anyone know how to remove it completely.
    Also,I dont want to remove all the files on the server,since i dont know where i got the theme ,currently im using on the site
     
    sosmuthu, Nov 8, 2009 IP
  2. brox4nite

    brox4nite Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    I'd suggest backing up the wordpress database, removing all files, installing the latest wordpress and restoring the database.

    Another way is to search files for "thalassapromotion.eu" and remove the tags.

    Sometimes those hackers base64 encode the strings, so you have to look for code containting eval + base64_encode and remove it.
     
    brox4nite, Nov 9, 2009 IP
  3. sosmuthu

    sosmuthu Peon

    Messages:
    287
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yah,i removed all the eval,base 64_encode from files...But it seems there is somemore hidden among various other files
     
    sosmuthu, Nov 9, 2009 IP
  4. brox4nite

    brox4nite Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Check the plugins dir, I remember when I once got hacked via old wordpress, they hid a backdoor in plugins dir, that would re-install itself.

    It was located in 'js' directory there somewhere. Like /path/to/wordpress/wp-content/plugins/some-plugin/js/files.js.php.

    I didn't realize at first that 'js' was not part of that plugin.
     
    brox4nite, Nov 9, 2009 IP
  5. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    pm me your domain name and I'll see what I can come up with. Also, if it happens on a certain page, that would be helpful. ;)
     
    SecureCP, Nov 10, 2009 IP
  6. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #6
    ilook, Nov 11, 2009 IP
  7. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #7
    To scan for them, you can follow the steps I used to scan for malicious iframes.
     
    ads2help, Nov 24, 2009 IP