Blog hacked - looking for security expert to fix it

Discussion in 'Security' started by dev22, Sep 25, 2009.

  1. #1
    someone probably hacked my wordpress blog and now all links to next page include link to RFI script, which is not on the website anymore though.

    the url is like /page/2/?error=http://RFI

    the whole thing does nothing, but it annoys me and my visitors.

    i am quite skilled with linux and wordpress, spent hours searching for it. its my own dedicated server. i was unable to locate and remove it, even after running search for iframe, eval and base64_encode which is often used by hackers.

    all i need is to remove this so it doesnt appear in the url.

    i am looking for linux / security EXPERT, not any newbie. its running on centos with DA. i will pay the guy if he suceeds to remove it.
     
    dev22, Sep 25, 2009 IP
  2. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi! :D Let me have a look at it and we'll see what we can do.
     
    SecureCP, Sep 25, 2009 IP
  3. scylla

    scylla Notable Member

    Messages:
    1,025
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    225
    #3
    let me give you a hint... do these steps:

    *download a backup of your site
    *download and use editplus (open all the files with it)
    *do a search for "http://RFI" (it should search all open documents)
    *find and edit the link
     
    scylla, Sep 25, 2009 IP
  4. matessim

    matessim Active Member

    Messages:
    514
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    70
    #4
    i can take a look/probably fix it, pm me the details if you want me to check it.
     
    matessim, Sep 26, 2009 IP
  5. Traffic-Bug

    Traffic-Bug Active Member

    Messages:
    1,866
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Look for any include files that are adding anything that looks like 'RFI' into code that generates links. Especially in your theme. Or PM me and I will see if I can fix it.
     
    Traffic-Bug, Sep 26, 2009 IP
  6. dev22

    dev22 Well-Known Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #6
    i searched the whole server for that url with find/grep but its nowhere to be found - its probably somehow encoded. i installed like 3 security plugins but these didnt find anything either. i uploaded a clean version of wordpress and it didnt help. so weird.
     
    dev22, Sep 26, 2009 IP
  7. Traffic-Bug

    Traffic-Bug Active Member

    Messages:
    1,866
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Did you check the wp_posts table to see if the contents have anything like base64, eval encode, etc.
     
    Traffic-Bug, Sep 27, 2009 IP
  8. cpace1983

    cpace1983 Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you re-installed Wordpress, and it's still happening, that means it is in the database. As another poster mentioned, take a peek at the wp_posts field, and in general, for anything that might be out of place.
     
    cpace1983, Sep 28, 2009 IP
  9. dev22

    dev22 Well-Known Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #9
    i even did complete server update - "yum update" and also compiled a new version of apache and php. and it still happens. i checked the database for base64 and eval and found nothing suspicious. this is driving me nuts.
     
    dev22, Oct 2, 2009 IP
  10. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If you'd like, I can take a look at it for you. If you'll provide me with a link etc, I'll be glad to help you out.
     
    SecureCP, Oct 2, 2009 IP
  11. dev22

    dev22 Well-Known Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #11
    i contacted you and nothing happened, the problem still occurs :/
     
    dev22, Oct 28, 2009 IP
  12. Archimonde

    Archimonde Peon

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Could you give me your code ? I'll fix it for you.
     
    Archimonde, Nov 14, 2009 IP
  13. coolmaste

    coolmaste Peon

    Messages:
    120
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Looks like offending line is in the DB, I can help you!

    check out the signature link for contact ID.
     
    Last edited: Nov 16, 2009
    coolmaste, Nov 16, 2009 IP
  14. dev22

    dev22 Well-Known Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #14
    i hired someone at odesk and he fixed it. it was probably bot spamming the site, wordpress then randomly. propagated the url on all pages.
     
    dev22, Nov 28, 2009 IP
  15. submitmaster

    submitmaster Well-Known Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #15
    so this was spam or bots actually got a hold of your login info?
     
    submitmaster, Dec 16, 2009 IP
  16. dev22

    dev22 Well-Known Member

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #16
    probably spam, no leaked logins/pws
     
    dev22, Dec 18, 2009 IP