login security check

This is a discussion on "login security check" within the Classic ASP section. This forum, and the thread "login security check are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 5th, 2003, 17:31
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ok.... As a banner it fails in one important respect: It isn't a specific banner size. Most banners are 468x60 or there abouts. This is a monster at 731x164...
Why ALL that black? there's about 20 pixels at the top you don't need and it's all wasted space. It is easy to read, but it doesn't grab my attention and it looks dull. There's what... turqoise, white and black.
More importantly... What the hell is HDH? Harddriveheroes? Forums, ladders, downloads, news, reviews, chat... About what?! Is it counterstrike? What game? I can't tell.

  #2 (permalink)  
Old Nov 7th, 2003, 22:30
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
u may want to take a look at my dead site's banner

http://www31.brinkster.com/gwxthebest/

yours is ok, I think.... to me...
  #3 (permalink)  
Old Nov 7th, 2003, 22:55
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Well.. it is going to be the home to like 20-30 games so far. We are going to have TOns of competitions for each game with prizes for the winning team/person. So far we have, Tribes 1, Tribes 2, All the Star Wars, Battlefield, Counterstrike, Halo, and some others I havent heard of before..
  #4 (permalink)  
Old Aug 9th, 2004, 08:48
Junior Member
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
login security check

I've created a login script that takes you to an admin page. However, if somebody goes directly to the admin page they can get access without having to login.

I'm sure there is a simple solution for this but I can't seem to find any example login scripts that address this particular problem.

Any help on this would be much appreciated.

Ta
  #5 (permalink)  
Old Aug 9th, 2004, 09:09
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
The normal way to combat this is to create an include file which you include in all the pages which need to be password protected.

The code for this would look something like this:
Code: Select all
If Session("Authenticated")=False Then
Response.Redirect "Login.asp"
End If
...of course when the user logs in you need to created a session called "Authenticated" and set it to True.

Hope that helps
  #6 (permalink)  
Old Aug 9th, 2004, 09:31
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Yup, cookies and sessions are the way to go with that.
  #7 (permalink)  
Old Aug 9th, 2004, 09:38
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
As session variables are stored in cookies.... would it not be very easy for someone who knew what they were doing to 'fake' a valid login by just simply messing with the cookie?

I would always store user / pass in an encrypted form in either session, or cookies and check user / pass from that location on each page.

Anything else, is just open to abuse.

I stress though, you should encrypt the session / cookie data.


That'll be 12 cans of Grolsch for me please!! :wink:
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #8 (permalink)  
Old Aug 9th, 2004, 09:54
Junior Member
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Ah sessions - yes that does make everything easier. I understand the code you've written but what will the code for the following look like?

<blockquote id="quote"><font size="1" face="verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">...of course when the user logs in you need to created a session called "Authenticated" and set it to True.<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
  #9 (permalink)  
Old Aug 9th, 2004, 09:56
Junior Member
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote"><font size="1" face="verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by Rob
As session variables are stored in cookies.... would it not be very easy for someone who knew what they were doing to 'fake' a valid login by just simply messing with the cookie?

I would always store user / pass in an encrypted form in either session, or cookies and check user / pass from that location on each page.

Anything else, is just open to abuse.

I stress though, you should encrypt the session / cookie data.


That'll be 12 cans of Grolsch for me please!! :wink:<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Yep, will look into thids when I get me head around the whole 'Sessions' thing...only 12 cans? Shame on you
  #10 (permalink)  
Old Aug 9th, 2004, 09:57
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Rob, Sessions arent actually stored in physical cookies tho are they? An ASPSESSIONID is created anyway for each user, this is an encrypted string (i think) which you would have to hijack in order to steal a session from someone.

Also, whilst modifying the contents of a cookie is easy, stealing a cookie from someone isnt easy, is it?

I agree that the contents of a persistant cookie should be encrypted.
  #11 (permalink)  
Old Aug 9th, 2004, 09:59
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by Lizard-
Ah sessions - yes that does make everything easier. I understand the code you've written but what will the code for the following look like?
<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">

Before you redirect the user, once you have authenticated them, add this line:
Code: Select all
Session("Authenticated")=True
HTH
  #12 (permalink)  
Old Aug 9th, 2004, 10:19
Junior Member
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
It works! Great! Thanks very much. Is session a VBScript built in variable then? Unique for each user?
  #13 (permalink)  
Old Aug 9th, 2004, 10:42
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
yes it is!
  #14 (permalink)  
Old Aug 9th, 2004, 13:02
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
As far as sessions go.... yes the are a *little* more secure than cookies..... but which ever method you use, I would check encrypted user / pass on each secured page.
Also, for pages where you can change credentials, or affect critical data, then you should re-gather username and password from the user...... this stops the case where they've walked away from the pc leaving it logged in.... only for someone else to come along and start playing.

Even though you are logged into webforumz.com, if you want to delete your post, or change your profile, you are asked for your login credentials again.... this is just standard security.

Webforumz.com stores encrypted username / password hash in cookies, and these are crossed checked against the database on EVERY page.... this really is just a standard procedure when you a not dealing with NT logins and using anonymous web access.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
login, security, check

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SEO Security Advisory - Check your sites NOW Rob Webforumz Cafe 23 Jun 11th, 2008 23:01
php security saltedm8 PHP Forum 22 Sep 27th, 2007 09:22
user login security question tnikolov Starting Out 5 May 7th, 2007 17:46
WebSite Security Login Redirect donlor18 Website Planning 2 Jan 24th, 2007 12:29


All times are GMT. The time now is 07:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43