secure account details

This is a discussion on "secure account details" within the Databases section. This forum, and the thread "secure account details are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jul 27th, 2005, 11:34
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
secure account details

I've been developing with asp and access databases for a short while now, and am starting to work with clients who need to capture customer details such as username, password, email, address, phone etc.

I am not going to store credit card details.

I have not put any particular security measures in place and I need to know whether my systems are adequately secure, particualrly with respect to legal requirements and the data protection act.

The site is not on a secure server. My access database exists in a seperate folder from the web directory, but there is no encryption or password protection on the database, and none of the information that is passed to and from it in my asp scripts is encrypted. My clients will be able to access customer information (as will the clients themselves) via logins which comprise a username and password. The asp script compares unm/pwd info with info in the database and sets a session variable to login.

Can anybody spot any gaping flaws in this system which will render my sites illegal or massively exposed? Can recommend any decent resources which won't involve me wading through masses of obscure legal or techy jargon?

Thanks very much.

So far I have consulted the following:

http://www.webforumz.com/viewtopic.php?t=1701
http://www.webforumz.com/viewtopic.php?t=3721

http://www.developer.com/lang/other/article.php/724731
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 27th, 2005, 15:35
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
You may want to look into "SQL Injection", it a method used by an attacker to insert extra SQL into your SQL by entering a certain string into your username and password boxes, for example:

' or ''='

enter the above into both the username and password box and see if it will log you in.

One easy way to combat this is to replace single quotes with 2 single quotes:

Code: Select all
UserName = Replace(Trim(Request.Form("username")), "'", "''")
PassWord = Replace(Trim(Request.Form("password")), "'", "''")
Also search on google for SQL injection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 27th, 2005, 16:03
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
good one.
Thats a start...!
Thanks Smokie.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 27th, 2005, 20:24
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Other than the SQL injection, as long as the folder the db is in isn't accessible to the public you're in pretty good shape. Maybe turn off detailed error messages, sometimes information shows up in an error that can help people get into places they should be in.

Security is always a balance of how much money/time it takes to improve it versus how important your data is. As you say there isn't CC info, so things like getting a SSL certification probably isn't neccessary.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 28th, 2005, 00:10
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You can (and should) store the password in the database already encrypted and not a raw text password. I believe asp has access to some encryption functions such as md5 and sha_256 or that scripts can be found to do the encryption for you quite easily.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 28th, 2005, 08:45
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Great,

Thanks folks, this is all exactly what I wanted to hear. I shall look into these.

Any other advice or opinions are always welcome.

si.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 28th, 2005, 09:12
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
I can prolly dig out some encryption scripts should you need them.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 28th, 2005, 09:20
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
That would be great Rob if it isn't too much hassle,

It would save me a lot of time searching the net.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 28th, 2005, 14:41
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Here is a function for creating a sha256 one way hash:-
http://pastebin.webforumz.com//view.php?id=26
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
secure, account, details

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
WTB: Need Your HONEST and POSITIVE Hosting Reviews! Read For Details HostingDeals Hosting & Domains 9 Jan 15th, 2008 07:08
secure connections nightmares E-Commerce and Business 4 Nov 26th, 2007 23:10
Send form details to an email address...please help! newbie44 JavaScript Forum 4 Oct 2nd, 2005 08:45
secure db benbramz Databases 3 Jun 1st, 2005 18:07
How secure is MS Access??? courtjester Databases 13 Jan 29th, 2004 14:17


All times are GMT. The time now is 23:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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