vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   HELP, I just got HACKED! (https://vborg.vbsupport.ru/showthread.php?t=35339)

ptbyjason 02-23-2002 12:03 AM

What can I do guys? I just got hacked and my everyone who has an account to the admin control panel had their account deleted!!! What can I do to get back in and fix it. Some of the info on the board does not need to be open to the public.

ptbyjason 02-23-2002 12:40 AM

Ok, I have everything moved to a new directory now. Here is what happened.

Somehow the guy was able to register under the account "admin" (supposed to be restricted). I suspended (suspended category allows PMs but no posting) the account and told him by PM to register under a new name in order to not confuse members. Then I decided to just delete the account because I noticed that he modified the board to expose one of the hidden forums and changed the board to say, check out our New Vet Board (suppose to be hidden). So in other words he gained access to the admin panel.

He then registered another account named admin. I kept banning it until he got up to a total of 4 accounts named admin. After that happened he deleted my account.

I tried to access the other accounts that I gave admin access to while all of this was going on (I was thinking ahead) but he deleted them too. He then deleted all of my mods who had access to the admin panel.

I run 2.03 and I have no idea what to do now. I didn't think anyone was able to register under the account admin, I didn't think you could give yourself access to the admin panel, and I didn't think you could remove the account of the original administrator. Someone please contact me ASAP and let me know what to do next.

ptbyjason 02-23-2002 12:58 AM

Is there anything I can do where I can alter the PHP to give myself access to the board again? I still have access to that. Anything you can do to help me will be greatly appreciated.

Reeve of shinra 02-23-2002 01:01 AM

****, that sux

first, make sure you do NOT have the retrieve admin password file loaded. Its the one that is included in the tools folder in the initial zip.

second, check the permissions for all your user groups to ensure that there arent any extra's - or current ones - with admin like power.

should do the trick ... should ...

ptbyjason 02-23-2002 01:07 AM

how do I get into the admin panel now?

ptbyjason 02-23-2002 01:20 AM

Quote:

Originally posted by Reeve of shinra
first, make sure you do NOT have the retrieve admin password file loaded. Its the one that is included in the tools folder in the initial zip.

second, check the permissions for all your user groups to ensure that there arent any extra's - or current ones - with admin like power.


1st. Do you know the exact file name of it? I cannot find it in there. I was not the original installer of our vbulletin, but I can see all of the files in our folders.

2nd. They could have easily given one user access to the admin control panel without me knowing, right?

I wish I had done that instead of changing my other accounts to administrators. It would have been better hidden.

TECK 02-23-2002 01:39 AM

i'm working on a script to let you gain access to your admin panel.. and also in a procedure to make it secured.. stay put.. i'm testing it right now

TECK 02-23-2002 01:40 AM

let me know if you have control over your web account.
i secured my vb panel so nobody can have access. even if you are admin, you cannot delete the original admin or edit any admins the original admin dont want you to.. ;)

ptbyjason 02-23-2002 01:56 AM

I do not have control over the web accounts, they have been deleted, but I have no idea how that was possible.

Thank you for the help

TECK 02-23-2002 01:57 AM

you cannot access your host anymore??????
then you must contact your web provider to assign you a new password.

about vb.. dont worry about, this can be easily bypassed, even if the hacker blocked your account. what i need to know is if you can upload files to your web folder using an ftp client

ptbyjason 02-23-2002 01:58 AM

The original admin is gone. I can view the members list and the account doesn't exist. Is it a hidden account? If so I might have used the wrong password, I will try again.

ptbyjason 02-23-2002 01:59 AM

I have access to the php codes (FTP), just not the admin panel. That's what I meant, sorry for the confusion.

TECK 02-23-2002 02:15 AM

ok.. now be patient.. i will help u.. let me do some other stuff and i will post here a file that you will run in your admin folder

TECK 02-23-2002 02:17 AM

with my script you will run it and you will create a new account.. then you can access the admin panel.. i will explain to you in details how to secure your panel so nobody can have access to run it.. even if they tru to hack by calling the script from another server

ptbyjason 02-23-2002 02:22 AM

thank you nakkid. Take your time. My board is about as secure as it is going to get right now. No one knows where it is and all of the posts that were sensitive information have either been pruned or manually deleted. I am not exposing it again until I know I have everything secure. I will wait all weekend if I have to (though I would prefer not too. :) ).


Thanks again nakkid.

TECK 02-23-2002 02:34 AM

ok.. i finished the script.. i test it on my board and you can add a admin user. now i will work on a tutorial on how to lock your access to any users but the ones you want

TECK 02-23-2002 02:36 AM

Quote:

Originally posted by ptbyjason
thank you nakkid. Take your time. My board is about as secure as it is going to get right now. No one knows where it is and all of the posts that were sensitive information have either been pruned or manually deleted. I am not exposing it again until I know I have everything secure. I will wait all weekend if I have to (though I would prefer not too. :) ).


Thanks again nakkid.

;) don't worry. i'm here to help.
the idiot who played this on you will have the biggest surprise on his live.. and i want you to restore your board the way it was before.. so he will freak even more.. on this way, you dont have to edit all your templates, etc :)

TECK 02-23-2002 02:39 AM

now.. i give you the choice:
1. do a php mod in your admin files so you can still use the session hash but if an admin that is not created by you wants to edit any of the atributes of any admin, will get a nice error message.

2. secure the folder with unique passwords. in this way nobody but your designated users will have access to the folder.. any file will be locked until you enter the right password. that's the one i like the most. the only disadvantage is that you have to ener your password twice. if u care about security, go for the second option.

ptbyjason 02-23-2002 02:39 AM

Quote:

Originally posted by nakkid
;) don't worry. i'm here to help.
the idiot who played this on you will have the biggest surprise on his live.. and i want you to restore your board the way it was before.. so he will freak even more.. on this way, you dont have to edit all your templates, etc :)


:D On a night like tonight, you have no idea how much I like to hear that. I am beginning to feel like this will be fun now. ;) :D

ptbyjason 02-23-2002 02:41 AM

Quote:

Originally posted by nakkid
2. secure the folder with unique passwords. in this way nobody but your designated users will have access to the folder.. any file will be locked until you enter the right password. that's the one i like the most. the only disadvantage is that you have to ener your password twice. if u care about security, go for the second option.
With my board security is extremely important, let's go with Door #2. :D

TECK 02-23-2002 02:41 AM

you know? i remember when i used to be in trouble and people helped me. i'm so happy that i can do this for you. let me know your option and i will post a tutorial with what to do.. i need you to post here your email i can email you the file... then wait for the tutorial, dont run it yet

TECK 02-23-2002 02:43 AM

ok.. 2 is to be.. :) post your email

ptbyjason 02-23-2002 02:44 AM

reading back over everything. Wouldn't he still be able to get into a new account with the second option? Or are you saying that in order to log in to the admin panel you have to know the universal password?

ptbyjason 02-23-2002 02:45 AM

E-mail address in new PM.

TECK 02-23-2002 02:50 AM

ok ckeck your email.. and wait for me to post the instructions. ;)

TECK 02-23-2002 02:52 AM

one thing.. this should work ok in 2.0.3 i have test it on 2.2.2 but the database structure for members didnt changed.. so you will be ok ;)
is time for me to make you a happy man :) let me start the install and security procedure....

ptbyjason 02-23-2002 02:56 AM

got it, ok I will wait for the instructions

TECK 02-23-2002 03:34 AM

INSTALL PROCEDURE

01. first create 2 files called htaccess.txt and htpasswd.txt.

in htaccess.txt place this:
-------------------------------
order allow,deny
allow from all
require valid-user
Authname anabolicreview.com
AuthPAM_Enabled off
Authtype Basic
AuthUserFile /path/to/your/forum/admin/.htpasswd
-------------------------------
save the file. this file will lock your admin folder, if the username and
password is incorrect. ;)

in htpasswd.txt place this:
-------------------------------
username:encryptedpassword
-------------------------------
to make an username and encrypted password, go here:
http://www.xs4all.nl/~remcovz/htpasswd.html
save the file.

NOTE: you can make as many users you want. place them all in
htpasswd.txt file. here it is an example the way your file
should look like:
-------------------------------
PtbyJason:JFE77XeDHmQc2
nakkid:TpWjdGMlaQXuI
-------------------------------
NOTE: the username and password are case sensitive.

02. now that we have the 2 files saved, upload them to your /admin folder
and rename them to .htaccess and .htpasswd, using your favorite
ftp client. they will become invisible.

03. upload to your /admin folder the adduser.php file i emailed you
and run it. if you did a good job with .htaccess and .htpasswd files, you will
get a window asking you to enter your username and password. do that. ;)
the script will load and you can enter all the info necessary to create your
admin account.

NOTE: make sure you select from the dropdown the Administrators group because
with this script you can add any member to any group you want.

04. now that you created a new admin account, is time to nail the sucker
who did this. access your /admin/index.php file as usual. the secured window
will not ask you again to enter your username and pass because the lap of time
set to store your information, so there is no need to panic..

05. enter your new username and password, at VB prompt, as usual.

06. delete all admin accounts. you are done and in control again. ;)
it was easy right? yep it was, so why you panic? :D

TECK 02-23-2002 03:35 AM

let me know if you need something else. that should do it. ;)

ptbyjason 02-23-2002 03:48 AM

working on it now

TECK 02-23-2002 03:48 AM

ok.. post here once you are done ;)

ptbyjason 02-23-2002 04:09 AM

hmmmm, got an error

trying to fix it myself

ptbyjason 02-23-2002 04:16 AM

wait, I think I remember now, hang on I forgot to edit something.

ptbyjason 02-23-2002 04:23 AM

Nope, still have problem

Quote:

Parse error: parse error in /business/***edit***/***edit***/***edit***/vbulletin/admin/adduser.php on line 51

TECK 02-23-2002 04:24 AM

oupsss.. ;) ckeck your email.. did you get the window asking you the username and password?

also. make sure you restore the exact same way your board. the information stored in the database is related to old links not the new ones. once restored to the old folders, run the adduser file in admin folder. let me know how it goes.

ptbyjason 02-23-2002 04:36 AM

trying it now

TECK 02-23-2002 04:43 AM

ok. let me know

ptbyjason 02-23-2002 04:45 AM

ok, created an account, then I tried to log in with the account and it didn't let me log in. I have tried every password it could be, what next?

ptbyjason 02-23-2002 04:47 AM

when I create the account, do I use the encrypted password or one that i just make up?

TECK 02-23-2002 04:52 AM

the htfiles are only for your folder access, they do not interact in any way with VB

so when you add a new user, you enter the name and password you want... for example:

username: nakkid
password: bored

you do NOT use the encrypted info you used in the htfiles...

basically, the adduser.php will simulate you are an admin and want to add a regular user as you do it from the admin panel.. so proceed as usual.. ;)


All times are GMT. The time now is 03:45 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.01242 seconds
  • Memory Usage 1,820KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete