Results 1 to 9 of 9
  1. #1

    Default Site Hacked - Links Added

    Hi

    Just wondering if anyone has had their web site hosting hacked over the weekend?? Received a disk usage exceeded message yesterday and just checked my website (not logged in to it for a few months). All of my HTML files have had dodgy links added to them on 27th March!!

    Called support who asked me to send emails to support and abuse which I have done. But would like to delete the links asap.

    Cheers
    gaz

  2. #2

    Default

    Hello Gareth,

    Martin has already replied to your email. He has suggested a few steps in it.
    Nick
    Quality Assurance & Analysis
    EMAIL & MSN : nick@eukhost.com

  3. #3

    Default

    This happened to me too. On March 17th.

    I noticed both a line that contained a load of links and a different line starting eval(base64_decode...

    Note: Decoding the code leads to another base 64 decode which generates a remote procedure call to the phpAdsNew program installed on ppc100 dot info. This is obviously a malicious ad server.

    Be sure to remove both lines from your files.

    I'm contemplating writing a script to automatically remove the links from the infected files, but this largely depends on whether I can knock one up quicker than it would take me to manually delete the lines. I'll post the script here if I do end up writing one.

  4. #4
    Join Date
    Jan 2007
    Location
    Amersham
    Posts
    511

    Default

    What server are you guys on - as often this type of think can affect a lot of accounts on the same server and others on that same server might be unaware that they are also affected.
    David Allen - www.serina.co.uk

  5. #5

    Default

    Btw, if anyone want to search their files for this infection, you can search for a number of things.

    1. The eval(base64... statement.

    Code:
    find . -name "*" -exec grep "eval(base64_decode(" -l {} \;
    2. The id of the divider surrounding the links, though this is likely to be changed periodically by the attacker.

    Code:
    find . -name "*" -exec grep "myDiv412" -l {} \;
    3. dc.write statements responsible for hiding the dodgy links.

    Code:
    find . -name "*" -exec grep "dc\.write(" -l {} \;
    4. Some of the text in the block of dodgy links, though when I tried this it didn't return all infected files because the links varied.

    Code:
    find . -name "*" -exec grep "mind in love saying" -l {} \;
    Note: These commands will search recursively from the current directory in all files. It could take some time. You could change the command to search the public_html directory in all html files by changing the command to the following (using example 1):

    Code:
    find public_html -name "*.html" -exec grep "eval(base64_decode(" -l {} \;
    Last edited by brighter; 10-04-2008 at 10:13.

  6. #6

    Default

    firefly

    I spoke to someone via chat. They say that no other accounts are infected, but I doubt they could know that for certain in the time it took them to check.

  7. #7

    Default

    Ok. I've got a basic script. It's not perfect. It looks at all html files and replaces all lines that match the matchstring with nothing. It creates backup files with a .bak extension whether a file is altered or not.

    Code:
    find . -name "*.html" -exec sed -e '/^matchstring*/d' -i.bak {} \;
    So, replace matchstring with the malicious line you want removed.

    BACKUP ALL FILES FIRST!! just in case something goes wrong.

    Edit: And if you want to check other files, just change the *.html to *.whatever, or just use * alone to search all files.

  8. #8
    Join Date
    May 2007
    Location
    Cambridge, UK
    Posts
    1,593

    Default

    I had this a while ago. It was only the one account on the VPS Hosting which seemed a bit odd. I had a backup copy so just wiped it and reuploaded as it is only a CSS and HTML site.
    Jonathan Crass
    Joint Partner in Checker Design
    Joint Partner in Jst Hosting

    UK Website design
    UK based monitoring
    Cheap UK Web Hosting

    eUKhost Forum Moderator

  9. #9
    Join Date
    Sep 2005
    Posts
    6,039

    Default

    Firefly was reserved for customers who needed SSH access and no "security settings". We have 2 servers reserved for such customers as some customers using CMS like Joomla or Mambo need mod_security and php disabled_functions disabled on the server.

    We have basic security for this 2 servers but they are not as secure as other servers.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •