Solved

http vs https : when is a login safe ?

Posted on 2014-07-30
10
306 Views
Last Modified: 2014-07-30
when I am on some site such as http://www.sample.com/, and there are 2 form fields, such as username and password on that site, and a SUBMIT button: is this login safe or unsafe ? After pressing SUBMIT, I come to a https site.
Same question, in other words: is the ssl protection active depending on the presence/absence of the https in the the starting site xor in the  destination site ?
0
Comment
Question by:Sonja_M
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 363 total points
Comment Utility
It's not the current page but the connection to the next page that is important.  The current page using 'http' has already been requested and received.  What you want to keep the form data secure is for the next request (from the form to the destination page) to be using 'https'.
0
 
LVL 5

Assisted Solution

by:Sean Jackson
Sean Jackson earned 40 total points
Comment Utility
If you're on a page hosted at http:// and you hit submit, that data will travel from your browser to that server unencrypted.  If that page is on https:// and you hit submit, the data is going to travel through an encrypted tunnel.  

Entering a username and password on http:// is not safe.  It can be subject to others who are watching the traffic.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 363 total points
Comment Utility
Sean, that's Not The Way It Works.  It's the form 'action' URL that needs to be 'https', not the current page.  The current page is already done.  There is nothing that can read from it anymore.
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 92 total points
Comment Utility
Whilst login forms should really be on an HTTPS page to prevent any hacking Dave's comment is the correct one
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 92 total points
Comment Utility
Just to be clear - When I say hacking I mean of the unsecure form data being sent to the browser initially not hacking the posted data

p.s.
No points for this, was just to backup Dave's answer.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 5

Assisted Solution

by:Sean Jackson
Sean Jackson earned 40 total points
Comment Utility
Dave, are you saying that the page is rendered in plaintext, and then if I hit submit, and the form action is GET or POST, when it connects back to the server, that's when the SSL handshake occurs?  Not when the authenticated user gets their privileged page?
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 92 total points
Comment Utility
Thats correct.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
No points.   I concur with Dave's original answer.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 363 total points
Comment Utility
Yes, that's what I'm saying.  It's fine if both pages are SSL / https like Gary suggested but the important page, the request with the info you want to protect, is the 'action' page in the form.  That's when the info needs to be secure.  When you're typing your info into the form, it has already been loaded into your browser.  It's when you submit the form, that you need it to be encrypted to prevent people from reading it.
0
 

Author Closing Comment

by:Sonja_M
Comment Utility
thank you all for your detailed and precise answers and interesting additional aspects
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Read about achieving the basic levels of HRIS security in the workplace.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now