Small but serius Probs with GET method-- soln. urgent !

Reply

Join Date: Sep 2006
Posts: 7
Reputation: mahul000 is an unknown quantity at this point 
Solved Threads: 0
mahul000 mahul000 is offline Offline
Newbie Poster

Small but serius Probs with GET method-- soln. urgent !

 
0
  #1
Sep 4th, 2006
Here is a problem faced by me while handling the GET request method :

suppose the login form has user-id and password fields as text boxes. now after clicking on "sign-in" button the address bar of the following page(i.e the homepage of a particular member) shows:

<serverURL>.php?id=<someID>&pass=<somePass>

- where "id" and "pass" are the names of above mentioned textfields of login form. The technique works fine, except the password is clearly displayed in the address bar. Any person havig very little intelligence will at once decode it and know the password of the user beside him. Now my qtn is, how to tackle with this shortcoming ?

REMEMBER: I have to do it by GET method only, and not by POST !
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 43
Reputation: mmonaco27 is an unknown quantity at this point 
Solved Threads: 0
mmonaco27's Avatar
mmonaco27 mmonaco27 is offline Offline
Light Poster

Re: Small but serius Probs with GET method-- soln. urgent !

 
0
  #2
Sep 4th, 2006
I don't see why you can't use GET, but, serialize/encyrpt the password first. It's easy to do in PHP, but as you have to do it client side, hopefully there is some javascript md5 function.

Another solution would be to send the form data to a hidden iframe which first handles the data. You can then either do what you were intending in the hidden iframe, or you can simply process the URL, use PHP to convert the password to md5 then pass it on to the page you'd originally intended.

The IFrame would redirect to <serverURL>.php?id=<someID>&pass=DF098er3DKjD6798daDDF
I honostly can't stand computers, networks, hardware, software, databases, programming languages, php, c++, mysql, windows, linux, macs, solaris, processors, protocols, servers, clients, chats, ims, emails, and so forth and so on; but I find myself rather intrigued...
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: Small but serius Probs with GET method-- soln. urgent !

 
0
  #3
Sep 4th, 2006
Truely encrypt your password before sending. Don't just hash it, and don't use the password passed through the URL.

Remember, when programming on the web, it's always a good idea to program as if somone can see your source code.
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC