Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 06-19-2014, 06:55 AM
loua_oz loua_oz is offline
 
Join Date: Dec 2010
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hackers inserting ajax-2.php into /public_html directory

My webhosting provder detected (don't know how) that my site has been hacked, files that they found were malicious.

ajax-2.php

that VB Maintenance -> Diagnostics -> Search for suspicious Files also found, in 2 locations:

/public_html/ajax-2.php
/forums/admincp/ajax-2.php

There is ajax.php but that one came with site install and is 44KB long.
The hacked ajax-2.php is 22KB long, opened it, says "Created by BLACK-ID".

My provider sad I should change (their) CPanel password, and I did.
Also changed VB admin password.

However, I am almost sure that the file appeared again, after password change. Permissions are "644" as all regular files.

Anything can be done? If they can bring that file, they can bring anything.

(There is no "install" directory, installation was done as a paid service by VB Engineer.)

It is VB 4.2.2. patch 1
Reply With Quote
  #2  
Old 06-19-2014, 10:19 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Note: Dont skip any parts
Reply With Quote
Благодарность от:
Max Taxable
  #3  
Old 06-20-2014, 10:12 PM
loua_oz loua_oz is offline
 
Join Date: Dec 2010
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On day 1, hackers came and left ajax-2.php and another file that seems to does mail spamming at 9:08 pm.
Shortly after that, webhosting informed me there were 2 files they detected, quarantined them, and asked me to change password.
Later that day, deleted files at 9:05pm and changed password at 9:10pm.
In the meantime, at 9:08pm, hackers came (2 minutes before password change) and left the files again.
That is why I believed they have some other way, through VB, but seems not, that it was the site itself.
There are no strange files after site (not VB) password change.
Reply With Quote
  #4  
Old 06-20-2014, 11:07 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You must have another file on your site giving them access or they have ftp log in..could be a variety of things.
Reply With Quote
  #5  
Old 06-20-2014, 11:14 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sequels always suck. ajax-1 was bad enough, ugh.
Reply With Quote
  #6  
Old 06-20-2014, 11:28 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
Sequels always suck. ajax-1 was bad enough, ugh.

Are you kidding? Ajax is great for scrubbing bathtubs! :up:
Reply With Quote
4 благодарности(ей) от:
DemOnstar, ForceHSS, Max Taxable, tbworld
  #7  
Old 06-21-2014, 03:02 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find the shell script and remove it, until you find that shell script they will keep uploading and inserting more malicious files (and yes, a plugin can also have the same functionality as a shell script file i.e. once the plugin loads it can do whatever they've designed it to do).

So it's either a plugin re-inserting the files OR when you cleaned the site you simply missed a file which is a shell script that allows them to upload additional files amongst other things.
Reply With Quote
Благодарность от:
RichieBoy67
  #8  
Old 06-21-2014, 10:40 AM
loua_oz loua_oz is offline
 
Join Date: Dec 2010
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since hosting cPanel password has been changed, no surprises.

On the VB side, it is all vanilla, no plugins or mods.

VB diagnostics does not detect any suspicious files for 2 days now.

I tend to beleive, the hosting company had a several or many similar attacks on many sites they host and detected that. They were quiet when more serious attacks happened through VB entry.

Thanks to all those who replied, the value here may be to check the hosting side before blaming the VB software.

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

The hack was, i think, to send spam mail to all members. Although they (the hackers) could perhaps do more, they did not. That is perhaps what the hosting company detected - spam mailing across many sites.
Reply With Quote
  #9  
Old 06-21-2014, 12:08 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I am glad it is working for you. Perhaps it was that dreaded heartbleed bug. There was also recently a kernel vulnerability on many servers that needed to be upgraded. It could have been that as well but not that common or easy to hack.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:36 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.04780 seconds
  • Memory Usage 2,250KB
  • 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
  • (1)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
  • (6)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete