Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2008, 02:17 PM
Neoszion Neoszion is offline
 
Join Date: Apr 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need advice?

I recently had 2 of my VB sites hacked I done all the security checks (How To Make My Forums More Secure), and working in the industry full time (as a designer not a developer) all my sites are very secure

So basicly I had a parse error on the index of my sites and on my forums, so I commented out the following line in my global.php where the error was pointing to:

eval('$spacer_open = "' . fetch_template('spacer_open') . '";');
eval('$spacer_close = "' . fetch_template('spacer_close') . '";');

and I get the following at the top of the site:

ViRuSMaN Ow3nd Your SiTe .. v.-m@hotmail.com

Immediatley I have taken the sites down, but it baffles me how he got in as I looked within the databases and done a search for the above and it is only located in the template table (on both custom and default templates).

So my question is would this be a server problem (ie. with the host bad security)? Or is there something I am overlooking here? As I have all the upto date patches admin/mod cp are secure, I am the only Superadmin on the board and password is pretty tight (changed every month). I do want to restore the database because I have alot of posts and alot of members so any advice anyone can give would be more than greatfull?

Btw. I did try on vB support but they said its either me not securing it prop or the host.. but knowing how they got in the first place would realy strenghten my argument with the host..
And also on 1 of the sites there is no mods installed!

Thanks in advance
Reply With Quote
  #2  
Old 09-27-2008, 02:32 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If there are no modifications installed - the first thing that comes to mind is another script - it doesn't even have to be related to vBulletin. Another "theory" is that they had access to your server, which securing your vBulletin installation would have no effect anyway.
Reply With Quote
  #3  
Old 09-27-2008, 02:41 PM
Neoszion Neoszion is offline
 
Join Date: Apr 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for your reply.

The other pages at the moment on the sites are static.. And none of the scripts have access to any of the db's. I host with uk2 so I dont know where they rate on the server security chain but from what I hear there not a small company?

What would suggest my options are within restoring the orginal databases (obviously removing any template edits done bt this guy)?
Reply With Quote
  #4  
Old 09-27-2008, 03:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you run Admin CP > Maintenance > Suspect File Version and get a list of all the files vbulletin does not recognize? That is a good place to start. Of course, the script could be outside the vb directory, in which case you will have to look through all the files yourself.
Reply With Quote
  #5  
Old 09-27-2008, 03:26 PM
DarkGizmo DarkGizmo is offline
 
Join Date: Apr 2008
Location: NYC
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neoszion View Post
thanks for your reply.

The other pages at the moment on the sites are static.. And none of the scripts have access to any of the db's. I host with uk2 so I dont know where they rate on the server security chain but from what I hear there not a small company?

What would suggest my options are within restoring the orginal databases (obviously removing any template edits done bt this guy)?
They must be small since I never heard of them, I would switch hosts to something more...common, like hostgator or godaddy.
Reply With Quote
  #6  
Old 09-27-2008, 04:02 PM
Neoszion Neoszion is offline
 
Join Date: Apr 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Need a a Uk host for search engines.. Uk2.net there in .net magazine every month

--------------- Added [DATE]1222535270[/DATE] at [TIME]1222535270[/TIME] ---------------

Sorry to post twice!!!

OK in one of my forums I am trying to restore I have to comment out the following lines:

eval('$gobutton = "' . fetch_template('gobutton') . '";');
eval('$spacer_open = "' . fetch_template('spacer_open') . '";');
eval('$spacer_close = "' . fetch_template('spacer_close') . '";');

otherwise I ge the following error..

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/******/public_html/forums/global.php(627) : eval()'d code(1) : eval()'d code on line 1

I cannot find on this db where he has modified the file.
Reply With Quote
  #7  
Old 09-27-2008, 04:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is on line 627 of your global.php file? Have you replaced all your files? Deleted all non vb files?
Reply With Quote
  #8  
Old 09-27-2008, 04:48 PM
Neoszion Neoszion is offline
 
Join Date: Apr 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I have reiuploaded all default vb files.. Which leads me to believe that something has been altered in the db..

line 626 - 628

eval('$gobutton = "' . fetch_template('gobutton') . '";');
eval('$spacer_open = "' . fetch_template('spacer_open') . '";');
eval('$spacer_close = "' . fetch_template('spacer_close') . '";');
Reply With Quote
  #9  
Old 09-27-2008, 07:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And have you deleted all non-vb files from your site? Have you looked at those three templates you have posted? Are they all reverted in your style? And actually, if they got into the database, perhaps they got into the MASTER STYLE and changed them so they can't be reverted.

spacer_open:
HTML Code:
<!-- open content container -->
<if condition="$show['old_explorer']">
    <table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center"><tr><td class="page" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
<else />
<div align="center">
    <div class="page" style="width:$stylevar[outerdivwidth]; text-align:$stylevar[left]">
        <div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px" align="$stylevar[left]">
</if>
space_close:
HTML Code:
<if condition="$show['old_explorer']">
    </td></tr></table>
<else />
        </div>
    </div>
</div>
</if>
<!-- / close content container -->
go_button:
HTML Code:
<input type="submit" class="button" value="$vbphrase[go]"  />
If you really think it's the database, then restore one of your backups. But, you need to worry about how they got into there or they'll just do it again.
Reply With Quote
  #10  
Old 09-27-2008, 08:23 PM
Neoszion Neoszion is offline
 
Join Date: Apr 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nah those template edits are exact to what I have got.. I also got this message back from my host:

Well not much to do on our end as the server has not been hacked but your page, if he managed to log in to your account and inject an exploit it means you had a security breach. You need to secure your password and reupload your site content.

Have a nice day!

So they have'nt been much help.. My last backup is of 3months ago
Reply With Quote
Reply


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


All times are GMT. The time now is 05:05 PM.


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.04398 seconds
  • Memory Usage 2,256KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete