Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Putting it Together > Databases

Reply
 
LinkBack Thread Tools
Old July 27th, 2005, 08:34 AM   #1
New Member
 

Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 simonneaves is on a distinguished road
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
simonneaves is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 27th, 2005, 12:35 PM   #2
Highly Reputable Member
 

Join Date: Jul 2003
Location: Ipswich, UK
Posts: 686
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Smokie will become famous soon enough
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:
UserName = Replace(Trim(Request.Form("username")), "'", "''")
PassWord = Replace(Trim(Request.Form("password")), "'", "''")
Also search on google for SQL injection.
Smokie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 27th, 2005, 01:03 PM   #3
New Member
 

Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 simonneaves is on a distinguished road
good one.
Thats a start...!
Thanks Smokie.
simonneaves is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 27th, 2005, 05:24 PM   #4
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 117 Webforumz Staff is on a distinguished road
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.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 27th, 2005, 09:10 PM   #5
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 117 Webforumz Staff is on a distinguished road
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.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 28th, 2005, 05:45 AM   #6
New Member
 

Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 simonneaves is on a distinguished road
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.
simonneaves is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 28th, 2005, 06:12 AM   #7
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
I can prolly dig out some encryption scripts should you need them.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 28th, 2005, 06:20 AM   #8
New Member
 

Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 simonneaves is on a distinguished road
That would be great Rob if it isn't too much hassle,

It would save me a lot of time searching the net.
simonneaves is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 28th, 2005, 11:41 AM   #9
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
Here is a function for creating a sha256 one way hash:-
http://pastebin.webforumz.com//view.php?id=26
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
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

Bookmarks

Tags
secure , account , details


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Web Hosting and Domains 9 January 15th, 2008 04:08 AM
secure connections nightmares E-Commerce and Business 4 November 26th, 2007 08:10 PM
Send form details to an email address...please help! newbie44 JavaScript 4 October 2nd, 2005 05:45 AM
secure db benbramz Databases 3 June 1st, 2005 03:07 PM
How secure is MS Access??? courtjester Databases 13 January 29th, 2004 11:17 AM


Search Engine Optimization by vBSEO 3.2.0 RC8