Jump to content

Archived

This topic is now archived and is closed to further replies.

Darkness Soul

Login with some security

Recommended Posts

Hi,

I've reading some references about mysql, but unlucky..

I've been develop a login system, this login is a form that call a page "action.php" where the validation is executed..

The system work wells, but, i like to know about the securit.. my select is like it:

[code]$sql = ' SELECT * FROM tbUsers WHERE login="'. $login .'" AND pass="'. $pass .'" ';[/code]
is this the best security form to use a login system? please, if its securyless, i want some help..

Thanks folks,

Soul

Share this post


Link to post
Share on other sites
I'm not sure what you mean by security -- I'd be more concerned about how you're sending the passcode itself.

Share this post


Link to post
Share on other sites
[!--quoteo(post=358889:date=Mar 27 2006, 11:20 AM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ Mar 27 2006, 11:20 AM) [snapback]358889[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I'm not sure what you mean by security -- I'd be more concerned about how you're sending the passcode itself.
[/quote]

Someone told me that my sql isnt secure, someone can use it as a vulnerability...

Share this post


Link to post
Share on other sites
Well, provided you protect against injection attacks, your queries/scripts are only as secure as your connection itself.

Share this post


Link to post
Share on other sites
Read through this [a href=\"http://phpsec.org/projects/guide/\" target=\"_blank\"]security guide[/a], in particular the SQL INJECTION topic and look at the php function [a href=\"http://www.php.net/mysql_real_escape_string\" target=\"_blank\"]mysql_real_escape_string[/a].

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.