Forum Moderators: buckworks

Message Too Old, No Replies

SSL login approach

         

phoenix_fly

2:55 am on May 10, 2005 (gmt 0)

10+ Year Member



Hello everyone,

I finally got my SSL certificate installed but Iīm not sure whatīs the best approach: call the login page through [,...] and, therefore, everything after it takes the same bus; or, forcing http back, right after the login.

What you guys do?

Thanks

phoenix_fly

Corey Bryant

1:34 pm on May 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It all depends on your site / situation. If there is a lot of text to encode - it might not be that great of an idea to encrpyt everything.

-Corey

phoenix_fly

2:00 pm on May 11, 2005 (gmt 0)

10+ Year Member



I agree, it gets way too slow. But, what can I do to avoid that "the next page is insecure or sth" message from the browser? If I do ssl only in the login page, thatīs what my clients are gonna get, right?

Thanks

phoenix_fly

jamie

10:56 pm on May 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi phoenix

i know several reputable sites who call the login over ssl and then redirect to http. the message will pop up, but i don't think that's a bad thing, it does depend a bit on your level of user though.

the important thing is that the username and password are encrypted.

phoenix_fly

2:11 pm on May 13, 2005 (gmt 0)

10+ Year Member



Hey, Jamie! Thanks for the reply.

In fact, I think this might be a solution. And, to avoid the annoying message, I can make the https login screen appear in a small pop-up, just like our friends browsers do.

But, are you sure the traffic of username/password is the major critical point? What about session hijacking? My memberīs are pages get the cookie (a md5 hash, made of aleatory values, not username or pw) everytime. If someone "listens" to it, and comes in with that disguise, it would be a problem.

What do you think about it? Am I forgeting sth?

Thanks

phoenix_fly

jamie

5:12 pm on May 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



one way to get around that might be to check the visitors IP on every page and compare with a value stored at login?

phoenix_fly

6:13 pm on May 13, 2005 (gmt 0)

10+ Year Member



Yeah, it sure is! Good idea.

But, being paranoid, isnīt the ip subject to falsification? How difficult is that?

The cracker could listen to the ip, as he listens to the cookie, couldnīt him?

Or maybe I am being too paranoid. Am I?

phoenix_fly

jamie

8:25 am on May 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



phoenix_fly,

only you know how secure this has to be. i would do some more reading about possible login security issues if you are still worried.

the checks i do above have always been fine for me.

jamie

6:05 pm on May 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



phoenix_fly,

read this excellent post [webmasterworld.com...]

phoenix_fly

2:16 pm on May 16, 2005 (gmt 0)

10+ Year Member



Hay Jamie,

Thanks for the link. It read it and in fact they talked exactly about the same issue weīre dealing.

I am almost implementing the SSL login-only, but two points arenīt 100% clear yet for me:

1) they said the login form doesn't need to be printed in a https page. I think it needs, doesnīt it?

2) After the login, is it correct that the transition to a non-secure page only generates that annoying message if it is a form-submitting link? Regular links through "a href" do not generate it and make the transition smoothly?

André

phoenix_fly

9:28 pm on May 16, 2005 (gmt 0)

10+ Year Member



An update:

Iīve tested the #2 and the browser does show the message box. The situation I tested was the following:

1) login.cgi - the login form is called through https.
2) The user fills in username and pw, that are submitted, also, to login.cgi through https
3) login.cgi - after the verification routines, redirects the user to a non-https members start page. [Pow, message box appears!]

I was thinking of making this members start page still through https, and put in it a <meta> redirect to a non-https start page. You guys think itīs a good workaround? Is there another way? (this seems too brute force...)

Thanks

phoenix_fly

jatar_k

9:36 pm on May 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



in regards to #1, the login form itself doesn't have to be https but the form action does. The secure connection will be made before any information is sent. I have tested this extensively.

It also depends what information you need to protect, if it is something critical or any personal information is sent back and forth I would put the whole thing under https.

Do you require them to login to just browse the site?

phoenix_fly

12:40 am on May 17, 2005 (gmt 0)

10+ Year Member



Great to know that the action is enough; this simplifies a lot the scheme. Iīm glad you have tested this out - regarding sniffing, right? - because there are lots of people that say the login page must be https also. Youīre pretty sure, right?

In this site, the login is required to access paid resources that the non-paying members don't get. Also, there is a administrative section wich has some dangerous facilities to an evil visitor.

I am willing to settle with the cookie-ip scheme, having ssl in the login only, because itīs not a site for an all-hated financial institution and people seem to rely on this scheme for medium-high security applications. But the problem is how to throw back to http without that annoying message from the browser...