vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vB3.5 Email notification if someone attempts to access your Admin or Mod CP (https://vborg.vbsupport.ru/showthread.php?t=96921)

Boofo 09-25-2005 10:00 PM

vB3.5 Email notification if someone attempts to access your Admin or Mod CP
 
vB3.5 Email notification if someone attempts to access your Admin or Mod CP
Version 1.0.1
(By Boofo)

What does this modification do?
When someone tries to login to your Admin CP or Mod CP, you will get an email that contains the username they tried, the password they tried, their IP address, hostname, number of strikes, referrer, script, and the date & time of the attempt. It also will now distinguish itself in the message subject between a failed Admin CP attempt and a failed Mode CP attempt, so you will know right off which CP they tried to login to.

NOTE: To alleviate anyone getting upset about plain text passwords being transmitted from the server, the ONLY time a plain text password is sent, is when it is a failed login attempt. It is not stored on the server anywhere and no hashed passwords are ever revealed to anyone. I think it's good to know if anyone is getting close to what my CP password is so I can change it if necessary.

Credits:
Thanks to EvilLS1 for making the vB 3.0 version of this modification on which this update is based and released with permission.

Version Information:
Version 1.0.0 --Initial release
Version 1.0.1 --Fixed user name being wrong on a user attempt.


Installation overview:
--------------------------------------
Files to edit: (2)
--incudes/adminfunctions.php
--login.php


What it looks like in the Mod CP when an anonymous users tries to login:

-----------------------------------------------------
Someone is trying to login to your Your Forums Mod CP!
-----------------------------------------------------
Username tried: Ned
Password tried: does this work?
IP Address: 1.123.23.4
Host: 1-123-23-4.some.name.com
Strikes: 4 out of 5
Referer: http://www.yoursite.com/forums/modcp/
Script: http://www.yoursite.com/forums/login.php
Date & Time: Monday, September 26th, 2005 at 8:22:29 am
-----------------------------------------------------

What it looks like in the Mod CP when a user from your site tries to login:

-----------------------------------------------------
Someone is trying to login to your Your Forums Mod CP!
-----------------------------------------------------
Username tried: Boofo
Password tried: does this work?
IP Address: 1.123.23.4
Host: 1-123-23-4.some.name.com
Strikes: 4 out of 5
Referer: http://www.yoursite.com/forums/modcp/
Script: http://www.yoursite.com/forums/login.php
Date & Time: Monday, September 26th, 2005 at 8:22:29 am
-----------------------------------------------------
USER ATTEMPT: Your Forums has identified this registered user as: Boofo

Mith 09-26-2005 11:29 AM

Great hack!

I've tested this, and I do indeed get an E-mail message informing me of a wrongful attempt..

However..

The bottom information is incorrect:
Code:

 
Username tried: Boofo
Password tried: does this work?
IP Address: 1.123.23.4
Host: 1-123-23-4.some.name.com
Strikes: 4 out of 5
Referer: http://www.yoursite.com/forums/modcp/
Script: http://www.yoursite.com/forums/login.php
Date & Time: Monday, September 26th, 2005 at 8:22:29 am
-----------------------------------------------------
USER ATTEMPT: Your Forums has identified this registered user as: Boofo

So on my boards if I try to log in using the username Boofo (and as you and I both know, you aren't an admin of my board)

Then it comes up with the message above BUT

the bottom line SHOULD read:
USER ATTEMPT: Your Forums has identified this registered user as: <my user name>

So I think some small problem there.

Cheers

Boofo 09-26-2005 01:06 PM

Fixed! ;)

And how come I'm not an Admin on your board? ;)

TheComputerGuy 09-26-2005 02:17 PM

Installed

Thanks Boofo :)

Boofo 09-26-2005 02:37 PM

You're very welcome, sir. ;)

Hope to see you on the new site. ;)

icebox12 09-26-2005 03:41 PM

Good hack :)

I'm currently installing this on to my own forum I will post my full feedback on this after the installation has been completed.

Boofo 09-26-2005 03:46 PM

Quote:

Originally Posted by icebox12
Good hack :)

I'm currently installing this on to my own forum I will post my full feedback on this after the installation has been completed.

Which should take about 2 minutes. ;)

Darkwaltz4 09-26-2005 04:00 PM

hmm, this is an interesting hack, but i assume it sends to the same email for every failed attempt

this could reveal to that email the password of one of the mods, who just accidentally mispelled their USERNAME on the login panel.

i dunno, but mods might not enjoy this, and this might be an idea: if a submitted username matches an existing username, then the email of that username is the one who recieves the email :) that way the user in question knows they were the one targeted. (and perhaps the 'main' email getting the truly perhaps random attempt notices)

edit: hmm, although that wouldnt fix the whole mispelled name + correct password thing hmm...

truly a touchy subject :-p

edit: furthermore, this cant check if a login attempt worked, but wasnt that user (fully understandable), so this could actually serve to further give out your password :-/

nexialys 09-26-2005 04:04 PM

screenshot ?!

mouahhh... i had to ask !!! be the first is always good!

Boofo 09-26-2005 04:10 PM

The first post shows you what it looks like. LOL

Boofo 09-26-2005 04:19 PM

Quote:

Originally Posted by Darkwaltz4
hmm, this is an interesting hack, but i assume it sends to the same email for every failed attempt

this could reveal to that email the password of one of the mods, who just accidentally mispelled their USERNAME on the login panel.

i dunno, but mods might not enjoy this, and this might be an idea: if a submitted username matches an existing username, then the email of that username is the one who recieves the email :) that way the user in question knows they were the one targeted. (and perhaps the 'main' email getting the truly perhaps random attempt notices)

edit: hmm, although that wouldnt fix the whole mispelled name + correct password thing hmm...

truly a touchy subject :-p

edit: furthermore, this cant check if a login attempt worked, but wasnt that user (fully understandable), so this could actually serve to further give out your password :-/

I explained the passsord reason in the first post. If the main Admin of your board cannot be trusted with the information if you make a mistake, then you really shouldn't be a Mod there anyway, right? ;)

I think the main Admin should get an email if someone attempts to log in no matter what account is trying to be used. Your idea of sending an email to the username tried is an intersting idea, but only as long as it would be staff personel that had access to whatever CP was trying to be accessed.

How could it further give out your password if they make a successful login? You wouldn't get an email and no information would be sent. If they make a successful login, they would already know your passord. Duh? ;)

Darkwaltz4 09-26-2005 04:26 PM

well of course, but anywhere where passwords are lying around in plaintext are troublesome if something is compromised (its happened to my email once). and also the untrustworthy admin thing :-p

well, yeah sorry i implied the 'and must be a mod/admin thing as well' :-p

im saying it could further give it out if its coupled with the whole compromised thing above. youd think this would be some sort of safeguard against logins who arent you, whereas its undetectable and yet posts your password in plaintext somewhere :-p hence the possibility of being negative on the whole.

im just helping to examine some vulnerabilities which can (and for me, have) arise

Boofo 09-26-2005 04:34 PM

The plain text password is not stored anywhere. It is only sent in the email. So there is no way for anyone to get it, because it isn't there. ;)

Darkwaltz4 09-26-2005 04:45 PM

yes it is stored somewhere; in the email message, as plaintext :-p thats what i keep talking about. if this message is left in the email client, and the email account is compromised, then the hacker has a host of email messages containing login failures at their disposal, and can probably deduce correct passwords from common mistakes with logins (like mispelled name + correct password)

if they did this quietly, then they could use them to log into the CPs, and nobody would detect that - correct login :-p

Boofo 09-26-2005 04:50 PM

Well, I don't feel that way about it so if someone doesn't want to have the password in the email, they can comment the password line out in the code. Simple as that. Easy fix.

Delphiprogrammi 09-26-2005 06:44 PM

i was waiting for this ...

Boofo 09-26-2005 06:58 PM

The wait is over! ;)

Marco van Herwaarden 09-26-2005 07:19 PM

/me moves Boofo up on his ignore list, oops he already was on top.
/me will from now on stay away from each board that is touched by Boofo

Boofo 09-26-2005 07:29 PM

I wish I had known that was all it took a long time ago. ;)

Delphiprogrammi 09-26-2005 07:40 PM

hi,

I don't receive the warning email ... vbulletins mails function is working fine (i know for sure since i tested it => maintenance =>diagnostics =>email test) and no PHP errors are displayed anywhere so i goto my admincp and i enter wrong login and password but nope .. vbversion i'm using (look at the left side) :D

Boofo 09-26-2005 07:58 PM

EvilLS1 did one for 3.0. Try that one. ;)

Delphiprogrammi 09-26-2005 08:22 PM

Quote:

Originally Posted by Boofo
EvilLS1 did one for 3.0. Try that one. ;)

eerm i'm wrong i'm using vb 3.5.0(RC3)

Boofo 09-26-2005 08:24 PM

Then upload fresh files and re-edit them. There's no way it should not work. It goes to the webmasteremail.

concepts 09-26-2005 09:53 PM

Great Hack [installed]

**works Great!

utw-Mephisto 09-26-2005 11:47 PM

Is there a way to create a thread also in a certain forum ?

utw-Mephisto 09-26-2005 11:48 PM

A Plugin rather then fileedits would be great too

Boofo 09-26-2005 11:52 PM

Quote:

Originally Posted by utw-Mephisto
Is there a way to create a thread also in a certain forum ?

Wrong forum? ;)

Boofo 09-26-2005 11:53 PM

Quote:

Originally Posted by utw-Mephisto
A Plugin rather then fileedits would be great too

You're right, a plug-in would be beter. But there are no hooks to handle this so we're stuck with file edits for now. I tried, but it couldn't happen. :(

utw-Mephisto 09-27-2005 12:17 AM

Quote:

Originally Posted by Boofo
Wrong forum? ;)

No, I mean a thread instead an email :)

Boofo 09-27-2005 12:26 AM

I wouldn't do that as there is some personal info (ips, password tried) that really doesn't need to be posted anywhere. I only convereted this because I like to know if someone is messing around with the board. And since the email only comes to me, I feel that it is safeguarded enough for my purpose. I'm catching all sort of flack now over the tried password being sent. Think of the flack I would get over it being sent to a thread. ;)

C_P 09-27-2005 12:28 PM

A word of warning, for shits and giggles, I thought I'd see if this would function on vBulletin Version 3.0.7. This seems to install fine until you log out.... you cannot get back in! ;) So, for those that are gonna ask if it works on older versions.... nope.
Once the General Release of 3.5 non RC is out, I'll be back to get this one.
Thanks Boofo!

Boofo 09-27-2005 12:32 PM

Quote:

Originally Posted by C_P
A word of warning, for shits and giggles, I thought I'd see if this would function on vBulletin Version 3.0.7. This seems to install fine until you log out.... you cannot get back in! ;) So, for those that are gonna ask if it works on older versions.... nope.
Once the General Release of 3.5 non RC is out, I'll be back to get this one.
Thanks Boofo!

Well, of course it won't run on earler versions of 3.0. Things have changed. There is a 3.0 version of this out that works fine. This is the 3.5 upgrade to the earlier version. ;)

TyleR 09-27-2005 12:36 PM

Nice Bob..

/me clicks install

Delphiprogrammi 09-27-2005 09:41 PM

Quote:

Originally Posted by Boofo
Then upload fresh files and re-edit them. There's no way it should not work. It goes to the webmasteremail.

problem solved must of been typo anyway nice one and working like a charm

[high]* Delphiprogrammi clicks install[/high]

Boofo 09-27-2005 10:57 PM

Glad it's working for you. ;)

dreck 09-28-2005 08:06 PM

*INSTALL*

Nice hack... works great!

Thanks Boofo

utw-Mephisto 09-28-2005 10:44 PM

Works on 3.5 finall too :) Thanks

utw-Mephisto 09-28-2005 10:45 PM

Works on 3.5 finall too :) Thanks

utw-Mephisto 09-28-2005 10:45 PM

Works on 3.5 gold too :) Thanks

Alien 09-28-2005 11:50 PM

Woah, triple whammy post! :) Now that's appreciation, Boofo!

...works great, thanks so much for this!


All times are GMT. The time now is 04:48 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.01357 seconds
  • Memory Usage 1,821KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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