LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-10-2017, 09:10 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Should all web site login pages use https?


Hi.

Should all web site login pages use https? From time to time I notice some sites use http on their login page -- surely that's a major security risk or am I wrong?

Thanks.
 
Old 05-10-2017, 09:59 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
http links are certainly acceptable, but if they direct to logon pages that direct should be secured.
 
Old 05-10-2017, 10:56 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I flatly recommend that, today, all web pages should be secured. (Just look at what WikiPedia has done.)

This avoids the mixing of secure and insecure content, or the use of information obtained through a secured area in an insecure area. Many web browsers today detect, and loudly complain about, any such mixture and will not allow things (like AJAX calls) to take place.

The site content should be "https," and the insecure <VirtualHost> should simply redirect-permanent to the secure one.

JM2CW™ ...
 
2 members found this post helpful.
Old 05-10-2017, 01:36 PM   #4
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question

Quote:
Originally Posted by wpeckham View Post
http links are certainly acceptable, but if they direct to logon pages that direct should be secured.
For example linuxquestions.org uses only http -- is this what you mean by 'http links are certainly acceptable'? I am confused - how is only http secure?
 
Old 05-10-2017, 01:42 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by linustalman View Post
For example linuxquestions.org uses only http -- is this what you mean by 'http links are certainly acceptable'? I am confused - how is only http secure?
You misunderstand me. Perhaps I was not clear. HTTP links are not secure. That is fine for static pages with public content, but anything that require a logon should use a HTTPS link. It is easy, if you are running your own web site, to use HTTP pages that do NOT display, but only forward you to the HTTPS page.

HTTPS uses encryption and is more secure. How secure depends upon which encryption standards are supported on that server, which is something you (as the page provider) can set in the server settings. Exact settings method depends upon what software you are using to provide web services.

Bottom line, when in doubt use encryption. Always.
 
Old 05-10-2017, 01:51 PM   #6
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thumbs up

Quote:
Originally Posted by wpeckham View Post
You misunderstand me. Perhaps I was not clear. HTTP links are not secure. That is fine for static pages with public content, but anything that require a logon should use a HTTPS link. It is easy, if you are running your own web site, to use HTTP pages that do NOT display, but only forward you to the HTTPS page.

HTTPS uses encryption and is more secure. How secure depends upon which encryption standards are supported on that server, which is something you (as the page provider) can set in the server settings. Exact settings method depends upon what software you are using to provide web services.

Bottom line, when in doubt use encryption. Always.
Thanks for clarifying that.
 
Old 05-10-2017, 03:46 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
All URLs should be HTTPS, period.
 
1 members found this post helpful.
Old 05-11-2017, 06:41 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Anything with a secure login should use HSTS https://en.wikipedia.org/wiki/HTTP_S...sport_Security

Only in the cases where logins don't particularly need to be secure is HTTP acceptable, use cases maybe beta/test pages using basic http auth with ip filtering or a downloads page for various files for friends/family. Anything taking anybody's actual password should be considered secure however and thus back to HSTS, I'd mix this in with a backend using randomized salt hashing with an individual salt per user.

Last edited by r3sistance; 05-11-2017 at 06:45 AM.
 
1 members found this post helpful.
Old 05-12-2017, 09:22 PM   #9
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Ha! And people in my region (SEA) prefer monster.com for head hunting and job hunting.
 
Old 05-23-2017, 01:01 PM   #10
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Rep: Reputation: 9
I think that all internet shouldnt be in https, i had problems with that protocol and i know, is more secure and all, but for certain circumstances (i needed in the past to install SSH to access https in a barebones system, and SURPRISE, download of binaries was in https, the program download was in https, etc.)
is better to dont use this protocol
 
Old 05-24-2017, 12:13 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by dugan View Post
All URLs should be HTTPS, period.
surely that's a little exaggerated?
if it is public, static content, why not http?

also, your own blog (and mine) doesn't seem to support https.
right now i'd rather use http than use letsencrypt (*), or have my visitors see a browser security warning.

(*) a while back i looked at letsencrypt closer, and using it effectively means signing a contract with a USA company. the country with the worst known privacy/security legislature. no, sir.
if there are alternatives to letsencrypt (free or almost free, browser trusted SSL), please let me know.
 
Old 05-24-2017, 03:31 AM   #12
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by ondoho View Post
surely that's a little exaggerated?
if it is public, static content, why not http?

also, your own blog (and mine) doesn't seem to support https.
right now i'd rather use http than use letsencrypt (*), or have my visitors see a browser security warning.

(*) a while back i looked at letsencrypt closer, and using it effectively means signing a contract with a USA company. the country with the worst known privacy/security legislature. no, sir.
if there are alternatives to letsencrypt (free or almost free, browser trusted SSL), please let me know.
Because hosting http content can be used for degrade attacks where you can turn HTTPS connections into HTTP connections, if you have anything secure you must use HSTS for the reasons that HSTS exists, when using HSTS then everything HAS to be HTTPS.
 
Old 05-24-2017, 09:59 AM   #13
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
The original question was do LOGON screens need to be HTTPS, and I think we can all agree that the answer to that is an unqualified "Yes".

I am not sure we agree about pages not protected by logon, or where access does not depend upon identity. If I put up static information screens, or screen containing read-only data generated in the back end, I am not going to require that they be presented as https. I cannot imagine why one WOULD require that, but if you want to that is fine with me.
 
Old 05-24-2017, 10:32 AM   #14
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by wpeckham View Post
The original question was do LOGON screens need to be HTTPS, and I think we can all agree that the answer to that is an unqualified "Yes".

I am not sure we agree about pages not protected by logon, or where access does not depend upon identity. If I put up static information screens, or screen containing read-only data generated in the back end, I am not going to require that they be presented as https. I cannot imagine why one WOULD require that, but if you want to that is fine with me.
Since people still don't seem to be getting the importance of HSTS

https://en.wikipedia.org/wiki/HTTP_S...sport_Security

Quote:
The most important security vulnerability that HSTS can fix is SSL-stripping man-in-the-middle attacks, first publicly introduced by Moxie Marlinspike in his 2009 BlackHat Federal talk "New Tricks For Defeating SSL In Practice".[17][18] The SSL stripping attack works (on TLS as well) by transparently converting a secure HTTPS connection into a plain HTTP connection.
Once you use HSTS, everything has to be HTTPS, HTTP will no longer work as the client browser will see it as invalid and potentially malicious.
 
Old 05-24-2017, 06:49 PM   #15
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by r3sistance View Post
Since people still don't seem to be getting the importance of HSTS

https://en.wikipedia.org/wiki/HTTP_S...sport_Security



Once you use HSTS, everything has to be HTTPS, HTTP will no longer work as the client browser will see it as invalid and potentially malicious.
And yet, quite clearly, where a man in the middle attack is not useful for the middle, pointless in fact, there is no point in protecting against it. That is the case where I recommend HTTP over HTTPS.
 
  


Reply

Tags
http, https, login



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clients cannot connect to Apache when using HTTPS to view web pages. mehoggan Linux - Server 2 06-01-2009 03:10 PM
after moving web site to new server - certificate error loading https page jayunplugged Linux - General 3 03-06-2008 12:00 PM
Lighttpd HTTPS Web Pages Speed Synesthesia Linux - Software 0 03-07-2007 09:16 PM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
I can't login to web pages ybc Mandriva 2 04-18-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration