View Full Version : Forum hacked, keeps redirecting to to deface page after i deleted it
TrevorS
10-18-2012, 08:33 PM
My vBulletin forum was "hacked" (actually one of my admins emails just wasnt secure >.>) They uploaded 2 shells and a deface page, which i deleted, yet it still tries to redirect to the deface page, and is in an endless loop of refreshing.
Basically when it was first hacked, when i went to mydomain.com it redirected to mydomain.com/deface.html
I then deleted deface.html, but it still tries to redirect to mydomain.com/deface.html
I DO NOT have a .htaccess file, I've looked and it is not there. I have tried to make my own, and it would not work, I even made sure to CHMOD it, but still no success.
does anyone know how to fix this?
Try running this script: https://vborg.vbsupport.ru/showthread.php?t=281080
Also, look in the Plugin Manager and see if there are any plugins you don't recognize.
TrevorS
10-18-2012, 08:44 PM
I cant access my control panel because every page redirects.
In Omnibus
10-18-2012, 08:46 PM
Have you tried disabling hooks globally via the config.php file?
define('DISABLE_HOOKS', true);
Yeah that. And while it doesn't hurt to run that other script, if your admincp is redirecting it's got to be something other than a template.
Lynne
10-18-2012, 10:43 PM
Did you try using a database backup? If your database was also compromised, then that may be a good option.
TrevorS
10-19-2012, 12:24 AM
Did you try using a database backup? If your database was also compromised, then that may be a good option.
database was not touched, only an admin account that wasnt even super admin. all they did was upload 2 shellls, a deface page, and whatever redirects every page.
Lynne
10-19-2012, 01:51 AM
You cannot upload a file without ftp/server access, so what makes you think someone wasn't able to access the server and the database?
betterthanyours
10-19-2012, 08:25 AM
Just throwing this out there, you should make sure the NameServers were not changed and that there are no forwarders
TrevorS
10-19-2012, 11:33 AM
You cannot upload a file without ftp/server access, so what makes you think someone wasn't able to access the server and the database?
They uploaed a shell through the adminCP, then uploaded a deface page through that, i checked the 'last modified' date of all the files in my FTP, only the shell and the deface page were added.
Just throwing this out there, you should make sure the NameServers were not changed and that there are no forwarders
nameserves were not changed
Are you still having the redirect issue? If you upload a static html page and go to it, does it still redirect?
I think Lynne mentioned the database because if they didn't change any files then the only thing left is the vb database.
betterthanyours
10-19-2012, 12:08 PM
If they uploaded a plugin then chances are there are entries in your database that are making the redirect...
Is it possible for you to have the DB restored? Does your host take backups? If so, do that but also keep the current possibly compromised DB. Then, you can cross reference and compare any new tables or changes, delete those and possibly have repaired the DB
Also, as was mentioned above, if it is a plugin you can edit your includes/config.php file and add:
define('DISABLE_HOOKS', true);
somewhere after the first line. Then you should be able to go to the adminCP and use the plugin manager to figure out which one is causing the problem and disable it.
Simon Lloyd
10-19-2012, 12:49 PM
I'd seacrh my core vbulletin php files for eval(base64 code!
borbole
10-19-2012, 04:50 PM
Also ask your host to check the access logs for around the time that the hack happened to see what went down precisely.
Brandon Sheley
10-19-2012, 07:28 PM
Try running this script: https://vborg.vbsupport.ru/showthread.php?t=281080
Also, look in the Plugin Manager and see if there are any plugins you don't recognize.
Have you tried disabling hooks globally via the config.php file?
define('DISABLE_HOOKS', true);
I cant access my control panel because every page redirects.
have you tried the above?
do you have access to the database, or the files?
TrevorS
10-20-2012, 01:43 AM
have you tried the above?
do you have access to the database, or the files?
tried, didnt work.
I have access to the db and files, yes.
CAG CheechDogg
10-20-2012, 01:58 AM
Can you post a link to your site?
TrevorS
10-20-2012, 03:56 PM
Can you post a link to your site?
http://www.zamorak.net
In Omnibus
10-20-2012, 04:01 PM
<script>window.location='http://zamorak.net/PhaisamAndDan.html'</script>Unable to add cookies, header already sent.<br />
File: /home/trevors/public_html/Zamorak.net/includes/config.php<br />
Line: 48<br />
ForceHSS
10-20-2012, 07:26 PM
change this line in your config
$config['Database']['force_sql_mode'] = false;
if false change to true if true change to false
borbole
10-20-2012, 08:45 PM
tried, didnt work.
I have access to the db and files, yes.
What exactly did you try? You should have cleaned your site 10 times by now. Did you also ask your host to check their logs to see what went down and how?
http://www.zamorak.net
As others have mentioned above, there seems to be something wrong in your includes/config.php file around line 48. The hackers may have inserted something directly in that file.
CAG CheechDogg
10-21-2012, 05:13 AM
I don't see any redirects at all for this website.
Simon Lloyd
10-21-2012, 06:49 AM
remove your database name, username and password and post your config.php as text here.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.