security - What methods are there for hacking my own PHP login form? Is it secure enough? -
in nutshell, have test server/website uploaded folder called "private" php scripts. flow of program follows: login -> search item number -> display item image --> logout or search again.
in future item pages display large amount of database information each specific item, time being displays image. link test website below:
http://testserver574.hostei.com/private/login.html
my main question security , vulnerabilities. login.html page has form posts information php script called "processlogin.php", redirects login page wrong credentials. username , password hardcoded script time being.
other adding ssl (secure socket layer), secure "enough"? how hard coding username , password processlogin.php insecure when users can't read php code?
the username , password isn't hard guess if want try :p if real username , password, how can login such hacked display images?
ps: username , password same, i'm wondering if can hack login without effort...
edit: login function follows:
function login($username, $url) { session_regenerate_id(true); //security measure - create new sesion id $_session['valid'] = 1; $_session['username'] = $username; redirectpage($url); //redirect page }
which occurs after username , password verified "===" in php.
the important question happens after login. setting cookie identify user? in cookie? how easy fake cookie? how easy intercept cookie (hint: without ssl, pretty easy)? valid cookie required open of protected pages? or can go 1 of "protected" pages if know url , there'll no check @ all? there flaw in how cookie checked on protected pages may allow me bypass check? etc. etc...
Comments
Post a Comment