vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Forum hacked, keeps redirecting to to deface page after i deleted it (https://vborg.vbsupport.ru/showthread.php?t=289284)

TrevorS 10-18-2012 08:33 PM

Forum hacked, keeps redirecting to to deface page after i deleted it
 
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?

kh99 10-18-2012 08:39 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.

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);

kh99 10-18-2012 09:06 PM

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

Quote:

Originally Posted by Lynne (Post 2374121)
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

Quote:

Originally Posted by Lynne (Post 2374147)
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.

Quote:

Originally Posted by betterthanyours (Post 2374193)
Just throwing this out there, you should make sure the NameServers were not changed and that there are no forwarders

nameserves were not changed

kh99 10-19-2012 12:00 PM

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

kh99 10-19-2012 12:19 PM

Also, as was mentioned above, if it is a plugin you can edit your includes/config.php file and add:
Code:

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

Quote:

Originally Posted by kh99 (Post 2374083)
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.

Quote:

Originally Posted by ProSportsForums (Post 2374086)
Have you tried disabling hooks globally via the config.php file?

define('DISABLE_HOOKS', true);




Quote:

Originally Posted by TrevorS (Post 2374085)
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

Quote:

Originally Posted by Brandon Sheley (Post 2374331)
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

Quote:

Originally Posted by CAG CheechDogg (Post 2374420)
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

Quote:

Originally Posted by TrevorS (Post 2374418)
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?

kh99 10-20-2012 10:57 PM

Quote:

Originally Posted by TrevorS (Post 2374547)

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.


All times are GMT. The time now is 03:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01148 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete