Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should a web page with a login form be secured?

Tags:

security

Question in title, but I'll elaborate.

Say I have a form on a non-secure page, but I don't want the data that the user is posting to my web server to make sense to anyone who might intercept it. Do I need to serve the form securely or simply post the form to a secure URL?

like image 223
JMP Avatar asked Dec 17 '22 22:12

JMP


2 Answers

By serving the form unsecured, you allow a man-in-the-middle to alter your form's POST destination, letting an attacker harvest login information. But MITM attacks are not common, so you're probably fine serving the form unsecured.

like image 118
Karmastan Avatar answered Jan 14 '23 14:01

Karmastan


No. The post data is what counts. You can serve the login page over regular HTTP and post to HTTPS. You want the username and password to be encrypted, so we send that to the server over HTTPS we are golden.

like image 34
Chris Kooken Avatar answered Jan 14 '23 13:01

Chris Kooken