Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2001, 01:27 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 13
Password protecting a website

Hi,

I work at a website design company. We are currently developing a site that requires a password-protected Member section. A site done at this company before I started working here has a page that is password protected in theis manner: The page is a ColdFusion template with an HTML form that requires you to enter a username and password. The username and password are checked by querying a database that contains the usernames and passwords. If the the username and password entered in the form match both fields in a given record in the database, the template writes a cookie on the client machine and allows them to continue to browse the site. Is this a secure way of implementing password protection? All of the information I have seen regarding this talks about HTTP Authentication, which is obviously not employed in this scheme. Any information appreciated, thanks.

Reply With Quote
  #2  
Old June 14th, 2001, 06:50 AM
ame12 ame12 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 23 ame12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 26 sec
Reputation Power: 0
most obvious way

most obvious way is to use SSL. That is, let the user go to a form that asks for username and password, and when the form gets submitted the action is https:// based. This will give you a reasonably sound level of security. Without SSL, you'll basically have any credentials entered in the clear which is open to sniffing and spoofing, etc.


===========================================
http://badblue.com/helpphp.htm
Free small footprint web server for Windows
PHP, P2P file-sharing, transcoding and more
===========================================

Reply With Quote
  #3  
Old June 14th, 2001, 10:05 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 13
User Authentication

So HTTP Authentication is basically worthless?

Reply With Quote
  #4  
Old June 15th, 2001, 10:04 AM
thobbes867 thobbes867 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Northern Ohio
Posts: 75 thobbes867 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
HTTP Authentication isn't really worthless because it will keep your basic Internet user out of areas they don't belong, but on the other hand a knowledgable person could bypass this without much effort. Although these passwords are encrypted, they are transmitted in base64 format which is not difficult to decrypt.

Apache with SSL is not real difficult to set up, so if you are looking for a more sound form of security, then SSL is the way to go.

Reply With Quote
  #5  
Old June 18th, 2001, 10:57 PM
footinmouth footinmouth is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: North Vancouver, BC, Canada
Posts: 44 footinmouth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
SSL vs Non SSL

Basically :

http -> form submit is clear text [post and get]

so if a user cannot see a password on his own client machine
because the input field is "password" vs "text" then when it
is submitted the password is in clear text.

https -> does some encryption so the submitted fields are not
clear text in the packets.


The strength of the cipher 128 vs 40 or none and the hope
someone is not collecting all your packets is part of the problem/
answer.

At work for the "Boss" I setup one of these packet catchers
[ big brother company is watching you ]
and I could see all web and email traffic in plain text
[ you have to look at the packet headers and such also].
But soon You only see the messages and the sites people are visiting.

If the traffic was https then decoding would be needed but it is not for most.
__________________
Thanks

Foot in Mouth ver 1.2.5 Onion

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > Password protecting a website

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap