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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2014, 11:59 AM
cric2k cric2k is offline
 
Join Date: Jan 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Found malware

Hi,

I found a virus being embedded in the template 'headinclude_bottom' - it was a clever javascript insert that was only showing itself to certain members (for instance not admins).

When I removed {vb:raw template_hook.headinclude_bottom_css} from headinclude_bottom it no longer embedded the malware in the html.

I've tried looking about plugins and can't find the hook - am I supposed to be looking for a hook, or does anyone have any idea how someone has managed to get this data in there?

I'm on 4.1.9 by the way.

Thanks
Reply With Quote
  #2  
Old 10-16-2014, 12:01 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could of been something which was present in the style you downloaded?

Please list all of your plugins here.
Also go to Maintenance > Diagnostics > Suspect File Versions and run it, check for any suspicious files on your server.
Reply With Quote
  #3  
Old 10-16-2014, 12:33 PM
cric2k cric2k is offline
 
Join Date: Jan 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
It could of been something which was present in the style you downloaded?

Please list all of your plugins here.
Also go to Maintenance > Diagnostics > Suspect File Versions and run it, check for any suspicious files on your server.
Hi,

I've been running my style for four years now and I've been monitoring the admin log - I'm pretty sure it wasn't a breach through the admincp.

After checking files on the server I found 'eAccelerator control panel' saved as 'control____.php' in the root - I can't remember using this...

I've put a list of active Products below (there's hundreds of plugins). Having checked the plugins I don't think there are any outside of one of these products (apart from some of my custom ones).

Thanks

Reply With Quote
  #4  
Old 10-16-2014, 12:45 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Plugins look fine. Did you download the style you're using somewhere online? If so, could you post the link here?
Reply With Quote
  #5  
Old 10-16-2014, 01:07 PM
cric2k cric2k is offline
 
Join Date: Jan 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
Plugins look fine. Did you download the style you're using somewhere online? If so, could you post the link here?
Sorry I really can't remember - I've tried looking at my html to see if there's any commenting in there but it's not obvious where the style came from. I heavily modified the design from something I found on these forums back in 2010. I'm pretty sure the style itself didn't come with an in-built virus template since I've been using it for long, but I'm not sure if it has any vulnerabilities in itself.
Reply With Quote
  #6  
Old 10-16-2014, 01:43 PM
Firyou Firyou is offline
 
Join Date: Oct 2013
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are a lot of ways someone could have gained access to those files and compromised it. If you have the install folder in your vb root, I suggest removing ASAP. One of the most known 0 day exploits is through the use of that folder.

I would also check to your plugins/products asap as well. If someone gained access to your admincp area, it's not farfetch'd to think that they didn't install a shell in there. A shell would give them pretty much ftp access to the server, so check for suspicious plugin names.

I would also recommend protecting those directories with some sort of .htaccess. It's another obstacle for intruders and it'll slow them down by a lot IMO.
Reply With Quote
  #7  
Old 10-16-2014, 01:46 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's indeed hard to figure out how that code got there. Someone will have to check your FTP for suspicious files and every single hook for malicious code.
Reply With Quote
  #8  
Old 10-16-2014, 01:50 PM
cric2k cric2k is offline
 
Join Date: Jan 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok thanks. I've a dedicated box with command line access, I ran a command to see all modified physical files in the last month and can't find anything looks suspect. I'm thinking it has to be SQL insert as there's nothing in the control panel logs either - I was just hoping that there was known issue with 4.1.9 (patch level 4).

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

or also, an SQL query I could run to see where that hook is being used... I've tried fishing around myself in plugins but haven't been able to find it.
Reply With Quote
  #9  
Old 10-16-2014, 09:59 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reading these may help you.

http://www.vbulletin.com/forum/forum...24#post4020224
http://www.vbulletin.com/forum/forum...36#post4020236
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 01:57 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.07198 seconds
  • Memory Usage 2,240KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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