English 中文(简体)
ssl on login form?
原标题:
  • 时间:2009-11-16 21:43:29
  •  标签:
  • ssl

I have SSL on my website....when the user logs in from a http page the form action is sent to https page, would this still secure the posted data?

Or would it be better to have the form and the page it is posted to both SSL?

Thanks

最佳回答

It is absolutely necessary for both the page with the form AND the page being submitted to to be HTTPS. Unless the page with the form has HTTPS, you can make no guarantees about where that form is submitting to. It may not actually submit to an HTTPS page (are you expecting your visitors to view the source) or something may have inserted some malicious javascript to redirect the form to somewhere else. However if the form is also HTTPS then you know that it hasn t been tampered with.

Security is more than just ticking a box saying "I have encryption", it s a whole process.

But here s the important part (and why the only correct answer to this question is "both FROM and TO must be HTTPS) that most people forget: HTTPS (and SSL/TLS in general) isn t just encryption, that is only a part of it. It s about TRUST:

  1. You know where your data is being submitted to. This includes not just the server hostname but also the identity of who that hostname represents
  2. You know that nothing has been tampered with along the way

Without HTTPS on the FROM page, #2 above can t be guaranteed (the FROM page could be tampered with) which means that #1 can t be guaranteed. After all, if your form were somehow tampered with, how do you know what that form will do with your data in the end?

问题回答

Yes the transmission of the form data is still secure. You can use a network sniffer (Fiddler, NetMon, ...) to validate this. But for the user experience you should still put your login form on an SSL site. That way they see the "lock" icon in their browser. Also, there s no guarantee that the form hasn t been tampered with if you don t use SSL (as Adam said).

You need to have the form page with SSL to be secure.





相关问题
ssl on login form?

I have SSL on my website....when the user logs in from a http page the form action is sent to https page, would this still secure the posted data? Or would it be better to have the form and the page ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Why can t I find the truststore for an SSL handshake?

I m using the Spring RESTTemplate on the client side to make calls to a REST endpoint. The client in this case is a Spring app and Tomcat is the servlet container. I m running into issues making a ...

To add more parameter for my http header for SSL/TLS

As far as I understand, https is http plus SSL/TLS. What do I need to do if I want to add 3 more parameters for the header? I found a file inside Mozilla s NSS - ssl3ext.c, but I don t understand it ...

Why am I getting handshake_failure with Java SSL cert?

I m trying to use Hudson (which uses SVNKit) to access a Subversion repository that requires a client certificate to access it. I can access the same repository using the same client certificate via ...

热门标签