Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2014, 03:25 AM
romebaby romebaby is offline
 
Join Date: May 2013
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hacked forum, restored files, not working, help!

Hi all, I administer a site that's running 4.2.1 and we got hacked last week. Hacker deleted all DB files and changed a ton of stuff to where we had to pay Godaddy for a full restore. Everything is back in place from a week prior to the hack, including DB. When you go to the main URL it automatically goes to xxx.com/forums/install/install.php and says file is missing. The install folder is not in the forums directory. What do I do here?

Also I was planning on updating to 4.2.2 once I got the site back up.
Reply With Quote
  #2  
Old 07-15-2014, 07:52 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would suggest you download 4.2.2 and do a fresh install. That way you will have your install folder back.
Reply With Quote
  #3  
Old 07-15-2014, 11:07 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by romebaby View Post
Hacker deleted all DB files and changed a ton of stuff to where we had to pay Godaddy for a full restore.
Do you ever make a backup of your entire site? I don't mean just the DB but everything? It doesn't sound like it if you have to pay Godaddy to do a restore.

I suggest creating a full backup of the entire site once a week and a full backup of your DB every day. There's a nice mod on this site that will do the DB backup for you as a scheduled job.


https://vborg.vbsupport.ru/showthread.php?t=231481

I'm curious just how much Godaddy charges to restore the site
Reply With Quote
  #4  
Old 07-15-2014, 02:15 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 are definitely missing files or have the wrong ones there.
Reply With Quote
  #5  
Old 07-15-2014, 04:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, verify that the information in your /includes/config.php file is correct. If they restored a database, perhaps they gave it a different name, or different mysql user. Also, check the table prefix and make sure that if there is one, that you entered it into the config.php file.
Reply With Quote
Благодарность от:
RichieBoy67
  #6  
Old 07-16-2014, 06:16 AM
romebaby romebaby is offline
 
Join Date: May 2013
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the responses everyone. You're supposed to delete the install folder after an upgrade for security reasons (so I read) and it was running fine without it before the hack. Godaddy charges 150 for a restore when you have more than one db (we have 4). I had a local backup from March but it was taking forever to upload so we paid for the restore to get it done quicker and for a more recent copy. Thanks Lynne - I triple checked the config file with Godaddy, everything was correct. Godaddy ended up re-importing the db and boom, worked. So there must have been an incomplete or corrupt db restore on the first attempt. We're up and running sort of. Offline while I backup, upgrade, patch, backup.
Reply With Quote
  #7  
Old 07-16-2014, 06:39 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Get your host to see how the hacker got in then fix the problem
Reply With Quote
  #8  
Old 07-16-2014, 06:53 AM
romebaby romebaby is offline
 
Join Date: May 2013
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Email communicated with the hacker, as he was trying to get money from us. This is how he said he got in:

I exploited your site. Got that Admins HASH:SALT (which is the password encrypted). Once i gained acess i uploaded an AJAX code and upload a i47 shell. Then i looked at your config.php logged in to the SQL dump and dumped your database. Self killed the shell

I asked him to explain I exploited your site and he said "I ran a 4.2.x upgrade exploit."
Reply With Quote
  #9  
Old 07-16-2014, 07:26 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well that sounds rather like a young script kiddie lol. It's smart to keep an eye on the vBulletin announcements section, you never know if you're missing out on security updates.
Reply With Quote
Благодарность от:
ForceHSS
  #10  
Old 07-16-2014, 02:54 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 romebaby View Post
Email communicated with the hacker, as he was trying to get money from us. This is how he said he got in:

I exploited your site. Got that Admins HASH:SALT (which is the password encrypted). Once i gained acess i uploaded an AJAX code and upload a i47 shell. Then i looked at your config.php logged in to the SQL dump and dumped your database. Self killed the shell

I asked him to explain I exploited your site and he said "I ran a 4.2.x upgrade exploit."
I believe this exploit uses the upgrade.php file.

Are you sure you did not have the install directory in there at the time the site was hacked?

I would suggest you email all users and tell them to change log ins. in addition make sure you change all admin and server related log ins, database, ftp, etc.

Grab the admincp firewall and use it and be sure to protect your config using htaccess.

Lastly, many times these hackers lie to throw you off the trail. Check your server logs and see what went on yourself so you do not have to take his word for it.
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 07:37 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.03992 seconds
  • Memory Usage 2,248KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete