Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Info passed with URL safe with SSL?

Info passed with URL safe with SSL?
Thread Tools
Junior Member
Join Date: Jul 2002
Location: Hang Loose, Hawaii
Status: Offline
Reply With Quote
Nov 22, 2002, 07:48 PM
 
is it safe to pass info on the URL when you are using a SSL connection?

to be more specific: on my PHP script, i am authenticating users by their email addresses with a login script that POSTs back to itself.

when the script looks at the data and figures out it is a new user, it redirects the user to a secure form where s/he can register.

the line on the login script (note that $_POST[login] = email address entered at the login form):

if($customer=="new"):
header("Location: https://mysite.net/register.php?step...ter&email=$_POST[login]");


so, basically, is the info after ? in the url encrypted at all or is it passed as plain text?

for now i'm assuming it isn't, so is there any way to pass the email to the register form using POST while redirecting at the same time?

thanks
Can I have that cookie?
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Nov 24, 2002, 04:38 AM
 
Originally posted by ilukas:
is it safe to pass info on the URL when you are using a SSL connection?

the line on the login script (note that $_POST[login] = email address entered at the login form):

if($customer=="new"):
header("Location: https://mysite.net/register.php?step...ter&email=$_POST[login]");


so, basically, is the info after ? in the url encrypted at all or is it passed as plain text?

for now i'm assuming it isn't, so is there any way to pass the email to the register form using POST while redirecting at the same time?

thanks
I don't think so ... But you can check with programs like tcpdump.
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Dec 1, 2002, 09:02 PM
 
post / get are probably the least secure way because people can change the info in the bar and login as others...

sessions are somewhat better, a good reference is at http://www.php.net/manual/en/ref.session.php


--will
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 2, 2002, 09:38 AM
 
Originally posted by clam2000:
post / get are probably the least secure way because people can change the info in the bar and login as others...
You can't do that with post, at least not under ordinary circumstances. Someone truly determined could get around this by writing their own program (or using wget and doing it manually, for the truly masochistic), but it's not as wasy as Get.

Sessions are, as you say, better for this sort of thing. But you should know that they actually use the post method. It's just that rather than sending raw username and password data, they encode it into a session variable. That's how it's made more secure.

If you're doing this, though, and you want the ultimate in security, then definitely combine it with SSL. That will lock out some browsers, but not many; even Lynx supports SSL nowadays (if you get the proper build).
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 06:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2