1

I would like to secure logins by redirecting users to https://secure.domain.com/login then on a successful login, redirect them back to a plain http website bringing the session with them. Is this secure? Should I just buy a multi-domain plan so it secures sub domains and the parent domain? I'm puzzled.

TL;DR - Is transferring a login session from HTTPS to HTTP secure?

davidxd33
  • 1,186
  • 4
  • 22
  • 38

1 Answers1

1

Is transferring a login session from HTTPS to HTTP secure?

No.

You have two dataflows. One is the {username, password} to the server used for authentication. The second is the token or cookie returned to the client (and the client sending it to the server on subsequent requests).

The first dataflow is protected by HTTPS, and its OK (some hand waiving).

The subsequent dataflows utilize HTTP, so anyone who is in position can read and subsequently use the token or cookie.

Its also bad to mix and match HTTP/HTTPS due to downgrade attacks (or makes matters worse). See for example, Why is TLS susceptible to protocol downgrade attacks?.

Community
  • 1
  • 1
jww
  • 97,681
  • 90
  • 411
  • 885