Control Panel
Login to Begin to Talk!





Click Here to Register!
Advertisements



Go Back   Site Sift Forums > Site-Sift > Site-Sift Listings

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-07-2008, 06:08 AM
Shonky Shonky is offline
Just Registered
 
Join Date: Jun 2006
Posts: 5
Default SQL Injection Hack w/fix to probelm

Just found one of my directories has been hacked, came across this site that suggests the exploit (http://www.milw0rm.com/exploits/5383), and checked my server logs and this is what was used.

Anyone else had this occur to them, and if so what did you do to fix it?

Update: Had a 2nd directory hacked, this time by a different group, I also restored the database of the first directory, but it was hacked by yet another group only hours later.

For now I've taken them down until I can get a chance to look into it more. If anyone needs server logs to figure out how the hack was done just ask.

Last edited by Shonky : 04-07-2008 at 03:19 PM. Reason: update
Reply With Quote
  #2  
Old 04-08-2008, 07:21 AM
hs9191 hs9191 is offline
Just Registered
 
Join Date: Jan 2007
Posts: 2
Default My directory was hacked also

Hi there,

Just had my directory hacked, I have no idea how to fix it. Any suggestions you have will be greatly appreciated. The server logs would be a good way to start, I guess so if you can give me the instructions that would be great.

Regards,

Helena
Reply With Quote
  #3  
Old 04-08-2008, 08:26 AM
blabala blabala is offline
Just Registered
 
Join Date: Feb 2008
Posts: 8
Default

Yes same here mine was hacked too today. Need a fix!
Reply With Quote
  #4  
Old 04-08-2008, 09:04 AM
Blake Blake is offline
Clueless
 
Join Date: Dec 2006
Location: Montana
Posts: 21
Send a message via Yahoo to Blake
Default More Sites Hacked!

Ours have been hit also (5 sites). Can any one suggest a fix for this script. We fix the sites and they get injected again. Any suggestions will be appreciated.

For anyone else that has been hit and doesn't know how to fix. If you have been hacked like us, just log in to your phpmyadmin and empty the settings, dir_settings, and categories tables in your database, then get your back ups out and import the Dumping data for the same tables you emptied.

Good Luck!
Reply With Quote
  #5  
Old 04-08-2008, 12:16 PM
blabala blabala is offline
Just Registered
 
Join Date: Feb 2008
Posts: 8
Default

host fixed it, an hour later it's hacked again by another hackers group... when is that fix coming? Looks like hackers are having a ball with all the site sift directory sites!
Reply With Quote
  #6  
Old 04-08-2008, 03:17 PM
Shonky Shonky is offline
Just Registered
 
Join Date: Jun 2006
Posts: 5
Default

After browsing these forums for a bit over the last few days it appears that the devs don't post in here too often so I figure a fix won't be forthcoming any time soon, so rather than wait around for a fix I've gone and bought a license for a different script and will be converting all my directories over to that.

Thanks for the use of your script in the past Site Sift, but I'm moving on.
Reply With Quote
  #7  
Old 04-09-2008, 09:59 AM
Amaan Amaan is offline
Clueless
 
Join Date: Jan 2006
Posts: 13
Default

my directory is also hacked restored and again hacked after few hours.

Any solutions for this?
Reply With Quote
  #8  
Old 04-09-2008, 10:03 PM
iMacPhil iMacPhil is offline
Just Registered
 
Join Date: Apr 2008
Posts: 2
Default

Hello All,

I am new here but I had a client of mine contact me tonight with the same issues you have had. After looking at the exploits I figured this is the simplest way to fix it. The exploit is not an injection but it is a query that gets your username and password for the admin and then someone goes in and changes things.

To fix the problem go to your detail.php page in the main directory around line 5 right after

PHP Code:
<?php require_once('Connections/myconn.php'); ?>
<?php
$colname_page 
"1";
if (isset(
$__GET['id'])) {
  
$colname_page = (get_magic_quotes_gpc()) ? $__GET['id'] : addslashes($__GET['id']);
}


Add these lines

PHP Code:
 $var = (int) $colname_page;
$colname_page mysql_real_escape_string($var) ; 


This will sanitize all the user input and convert all input to an integer.

I hope this helps you out.

Regards,
Phil
Reply With Quote
  #9  
Old 04-10-2008, 08:01 AM
jojomart jojomart is offline
Clueless
 
Join Date: Oct 2007
Posts: 23
Default

Mine has been hacked today, as well!

I tried the code in the above post, but no luck, darn it!

I guess I'm going to have to switch scripts too - this is sooo frustrating.

Joanne
Reply With Quote
  #10  
Old 04-10-2008, 08:12 AM
iMacPhil iMacPhil is offline
Just Registered
 
Join Date: Apr 2008
Posts: 2
Default

Quote:
Originally Posted by jojomart
Mine has been hacked today, as well!

I tried the code in the above post, but no luck, darn it!

I guess I'm going to have to switch scripts too - this is sooo frustrating.

Joanne


This code will not fix a hacked site, you need to fix your site first or restore from a backup and then fix the lines of code above.

Regards,
Phil
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -7. The time now is 03:21 AM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Site Sift Media, Inc.