Members: 15,141
Threads: 38,828
Posts: 159,362
Online: 36

Newest Member: batterygogo


Old 02.02.2005, 00:15   #1
Baal
Expert Mamber
 
Baal's Avatar
 
Join Date: May 2004
Location: California
Posts: 254
Baal is on a distinguished road
Flame Phil Taylor Hacked!

Phil Taylor has been hacked - his site displays the following on load:

hacked!

Warning: file(../configuration.php): failed to open stream: No such file or directory in /home/bfitltd/public_html/includes/HTML_toolbar.php on line 6

We need to identify how his site was compromised. Anyone not already doing so should download my htacess tweaks (Mambo_Lock) either from Mamboforge or from www.mediabox101.com The htaccess script makes the config file inaccessible, and explains how to secure your admin login without locking the entire folder. Phil, go download a copy now, then please tell us what happened.
__________________
Wars only hurt those who die in them...

www.mediabox101.com

Last edited by Baal; 02.02.2005 at 03:05. Reason: Phil Taylor Hacked!
Baal is offline   Reply With Quote
Sponsored Links
Old 02.02.2005, 00:39   #2
me@phil-taylor.com
Mamber
 
Join Date: Apr 2004
Posts: 50
me@phil-taylor.com is on a distinguished road
Default Re: Phil Taylor Hacked!

Quote:
Originally Posted by Baal
Phil Taylor has been hacked - his site displays the following on load:

hacked!

Warning: file(../configuration.php): failed to open stream: No such file or directory in /home/bfitltd/public_html/includes/HTML_toolbar.php on line 6

We need to identify how his site was compromised. Anyone not already doing so should download my htacess tweaks (Mambo_Lock) either from Mamboforge or from www.mediabox101.com The htaccess script makes the config file inaccessible, and explains how to secure your admin login without locking the entire folder. Phil, go download a copy now, then please tell us what happened.


I was not hacked - I was playing with a new found hole in mambo :-)

News has been posted and a patch released already. This hole is SERIOUS!!! and I was even able to login to mamboportal.com administrator console !!!!! I could have deleted EVERYthing in Mambo! ! ! !

Be warned - you should patch today!!!
__________________
Phil Taylor -Developer
http://www.phil-taylor.com/
I only read these forums by RSS feed, so to get my attention just say my name in a post
me@phil-taylor.com is offline   Reply With Quote
Old 02.02.2005, 00:51   #3
me@phil-taylor.com
Mamber
 
Join Date: Apr 2004
Posts: 50
me@phil-taylor.com is on a distinguished road
Default Re: Phil Taylor Hacked!

Its also ironic that the security hole is still unpatched on mediabox101.com!!!

Your DB Username contains: 'm*********************8'
(Not correct number of * for chars ;-) ;-))





Quote:
Originally Posted by Baal
Phil Taylor has been hacked - his site displays the following on load:

hacked!

Warning: file(../configuration.php): failed to open stream: No such file or directory in /home/bfitltd/public_html/includes/HTML_toolbar.php on line 6

We need to identify how his site was compromised. Anyone not already doing so should download my htacess tweaks (Mambo_Lock) either from Mamboforge or from www.mediabox101.com The htaccess script makes the config file inaccessible, and explains how to secure your admin login without locking the entire folder. Phil, go download a copy now, then please tell us what happened.
__________________
Phil Taylor -Developer
http://www.phil-taylor.com/
I only read these forums by RSS feed, so to get my attention just say my name in a post
me@phil-taylor.com is offline   Reply With Quote
Old 02.02.2005, 01:00   #4
ruigato
Mamber
 
ruigato's Avatar
 
Join Date: Jun 2004
Location: Arouca - Portugal
Posts: 82
ruigato is on a distinguished road
Send a message via MSN to ruigato
Default Re: Phil Taylor Hacked!

you should put a readme file explaining how to patch, some users may not know were the file is
ruigato is offline   Reply With Quote
Old 02.02.2005, 01:25   #5
danialt
Senior Mamber
 
danialt's Avatar
 
Join Date: Apr 2004
Location: Dortmund
Posts: 155
danialt is on a distinguished road
Default Re: Phil Taylor Hacked!

Very interesting hole indeed. Amazing...

.
__________________
Danial Taherzadeh
Mambo Freelance Developer
MyPMS OS, Pro & PonyGallery
danialt is offline   Reply With Quote
Old 02.02.2005, 01:42   #6
doctorj
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Default Re: Phil Taylor Hacked!

Good to know man! I was unable to get your HTaccess? What did you do diff to yours? Would you mind posting the code so I can see it?
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline   Reply With Quote
Old 02.02.2005, 02:14   #7
Baal
Expert Mamber
 
Baal's Avatar
 
Join Date: May 2004
Location: California
Posts: 254
Baal is on a distinguished road
Default Re: Phil Taylor Hacked!

First off thanks for the tip and patch Phil, much appreciated.

Quote:
Good to know man! I was unable to get your HTaccess? What did you do diff to yours? Would you mind posting the code so I can see it?
It's just a bunch of extra htaccess rules to help protect things like the configuration file, cgi scripts etc... you can add as many file types as you want. Also it sends meail harvesters to a dummy page - just change /spamcop/ near the end of the main script to /yoursite.com/ it will all make sense with the read me files.

http://mamboforge.net/projects/mamlock/

My patch is nothing to do with Phil's they work on very diferent areas, but it might be worth setting an htaccess script in the includes file to block direct access to them. As i gather the hack on Phils was through the mambo includes file, pertaining to account generation.

Whilst htaccess wont prevent an sql injection, it can stop someone getting to your admin login screen, and hopefully stop them getting access to sensitive files in the first place.

Download from the forge, if you still can’t get it let me know and I’ll post it all. In the mean time here’s the most crucial bits:

In the root htaccess:

Code:
 #
# htaccess file for SEF
# @package Mambo Open Source
# @Copyright (C) 2000 - 2003 Miro International Pty Ltd
# @ All rights reserved
# @ Mambo Open Source is Free Software
# @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
# @version $Revision: 1.10 $

#
#  mod_rewrite in use
#

ReWriteEngine On

#  Uncomment following line if your webserver's URL 
#  is not directly related to physival file paths.
#  Update YourMamboDirectory (just / for root)

#  RewriteBase /

#
#  Rules
#

ReWriteRule ^content(.*) index.php
ReWriteRule ^component/(.*) index.php

Options +SymlinksIfOwnerMatch

ErrorDocument 404 http://www.mediabox101.com/index.php?option=com_404

# deny most common except .php
<FilesMatch 
"\.(inc|includes|tpl|h|ihtml|sql|ini|configuration|class|bin|spd|theme|module|modules|components|mambots|editor|media)$">
deny from all
</FilesMatch>

<Limit GET PUT POST>
  Order Allow,Deny
  Allow from all
</Limit>

<Files .htaccess>
order allow,deny
deny from all
</Files>
some components, including Phil’s Form component need access to the admin folder, so securing the entire folder is not an option. In this case you need to secure the index.php file:

Create two text files – one will be the htaccess the other should be htpasswd

In the htaccess paste the following code:

Code:
 <Files .htpasswd> 
  deny from all 
</Files> 

<Files index.php> 
   <Limit GET POST PUT> 
      require valid-user 
   </Limit> 
   AuthName "Restricted" 
   AuthType Basic 
   AuthUserFile /var/www/html/administrator/.htpasswd
</Files>


<Files .htaccess>
order allow,deny
deny from all
</Files>
paste the following in the htpasswd file:

Code:
 username:password
Save both files using the aforementioned names.

In most cases the only line you will need to change is:

AuthUserFile /var/www/html/administrator/.htpasswd

Change /var/www/html/.to the exact path of your site.

Now use the Salt Encrypter to generate your password. Simply key in the desired password, and a two letter salt value in the appropriate fields.

Change the .htpasswd to

yourusername:yourencryptedpassword

Upload both files to the mambo admin folder

In some (rare) instances the server might reject to password file
(some hosting set-ups will require the .htpasswd to be located in
a specific directory. In that case password protect the folder in
the normal manner through your hosts CP. Download the .htaccess
file it generated and look at the paths.

You should see something like this:

Code:
AuthUserFile /home/virtual/sitexx/xxx/var/www/.htpasswd
AuthGroupFile /home/virtual/sitexx/xxx/var/www/.htgroup
AuthName "username"
AuthType Basic
<Limit GET>
require group  groupname
</Limit>
__________________
Wars only hurt those who die in them...

www.mediabox101.com
Baal is offline   Reply With Quote
Old 02.02.2005, 02:49   #8
mambovince
Senior Mamber
 
mambovince's Avatar
 
Join Date: Apr 2004
Location: London, UK
Posts: 165
mambovince is on a distinguished road
Default Re: Phil Taylor Hacked!

Well done guys for getting on top of this so quickly.

Let's hope all Mambo site admins get the notification, and well done Phil for already doing this with your own user list.

- Vince
__________________

HostBaron.com
- low price Mambo & Joomla starter packages.
Includes easy install or migrate from Mambo to Joomla!
mambovince is offline   Reply With Quote
Old 02.02.2005, 03:06   #9
Baal
Expert Mamber
 
Baal's Avatar
 
Join Date: May 2004
Location: California
Posts: 254
Baal is on a distinguished road
Default Re: Phil Taylor Hacked!

glad to be of assistance
__________________
Wars only hurt those who die in them...

www.mediabox101.com
Baal is offline   Reply With Quote
Old 02.02.2005, 07:03   #10
doctorj
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Default Re: Phil Taylor Hacked!

I added the .htaccess and .htpasswd , anyone feel like taking al look at my site to see if there any holes in security that they can see? Please don't crash it, just let me know.
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phil Taylor - MosLock - Deception rjk Community Smalltalk 18 01.09.2007 14:56
phil a form install problem and database problems atapi Component 'How Do I' Questions 3 10.03.2005 15:56
IMPORTANT ANNOUNCEMENT - WHERE IS Phil Taylor? me@phil-taylor.com Community Announcements 0 24.04.2004 09:29


All times are GMT +2. The time now is 00:45.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.