Is it secure to submit from a HTTP form to HTTPS?

后端 未结 11 2080
悲哀的现实
悲哀的现实 2020-11-28 23:17

Is it acceptable to submit from an http form through https? It seems like it should be secure, but it allows for a man in the middle attack (here is a good discussion). Th

11条回答
  •  野性不改
    2020-11-28 23:31

    I think the main consideration of this question has to do with the URL that users know and the protocol scheme (http:)that browsers substitute by default.

    In that case, the normal behavior of a site that wants to ensure an encrypted channel is to have the http://home-page redirect to https://home-page. There is still a spoofing / MitM opportunity, but if it is by DNS poisoning, the risk is no higher than if one starts out with the https: URL. If a different domain name comes back, you need to worry then.

    This is probably safe enough. After all, if you are subject to a targetted MitM, you might as well start worrying about keyboard loggers, your local HOSTS file, and all sorts of other ways of finding out about your secure transactions involving your system already being owned.

提交回复
热议问题