HTTPS is not a magic bullet for Web security

Status
Not open for further replies.

jhodge

Ars Tribunus Angusticlavius
8,851
Subscriptor++
This article should include a bit about how HTTPS does note even really secure your connection unless you personally vet the list of trusted CAs. Otherwise, your company, ISP, govt., etc. can still perform a MITM attack. Given the extensive list of CAs trusted by default in Chrome and Firefox, some of them explicitly governmental, a 'secure' indication by your browser does not actually mean 'secure'.

Granted, it may eb interpreted as 'more secure', or 'secure as long as nobody in authority cares', but that does not equate to 'secure' in the sense that most people probably expect.
 
Upvote
69 (71 / -2)

adamsc

Ars Praefectus
4,469
Subscriptor++
It's critical for users to understand, and unfortunately HTTPS advocates sometimes present HTTPS as synonymous with "security."

This would have been stronger with some examples of non-salespeople making that claim – as currently worded, it sounds a bit like a strawman and could detract from the subsequent balanced discussion.

Similarly, this wording is too strong:

What happens to all those links to HTTP sites when all those sites become HTTPS? The current answer is they break.

That's only true if you choose not to setup redirects, which is incredibly easy to do even on large sites. There are harder problems like mixed-content handling but overselling this one distracts from that.
 
Upvote
47 (49 / -2)
Post content hidden for low score. Show…
[url=http:/civis/viewtopic.php?p=31520113#p31520113:3a7gqo9f said:
jeff234[/url]":3a7gqo9f]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

You kinda missed the point didn't you? That 'wiki/Charas' string is getting encrypted before being sent from the browser to the wiki server - at least it is so long as you're using https.
 
Upvote
56 (58 / -2)

adamsc

Ars Praefectus
4,469
Subscriptor++
[url=http:/civis/viewtopic.php?p=31520113#p31520113:1th77l5b said:
jeff234[/url]":1th77l5b]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The entire URL is encrypted with HTTPS. A network-level observer can see the IP address, which could be owned by the Wikimedia foundation or could just be a generic hosting company like Amazon or Rackspace.

This is why you'll periodically hear about innocuous sites being blocked because they shared an IP address or even subnet with a site which has content some government wanted to block more than they cared about collateral damage. CDN vendors reportedly spend a fair amount of time dealing with this.
 
Upvote
43 (44 / -1)
We keep reading about Comcast et al injecting cute little notes at the protocol level. Eg for a while when you signed into a Comcast hotspot it would plaster over every page you visited a "brought to you by Comcast" message. I also am a huge detractor of the gated hotspots that most public hotspots use and https kills these dead.

On the other hand, maybe this would just displace the problem and force the user to install all these untrusted certs to "make it work". And it's hard to justify needing all this fancy security for that Harry Potter fanfic.
 
Upvote
11 (11 / 0)
Post content hidden for low score. Show…

Ajedi32

Wise, Aged Ars Veteran
114
[url=http:/civis/viewtopic.php?p=31520151#p31520151:2sjb2qup said:
viscious+ars2[/url]":2sjb2qup]
[url=http:/civis/viewtopic.php?p=31520073#p31520073:2sjb2qup said:
willdude[/url]":2sjb2qup]Wouldn't the simplest fix for broken http links be for a server that's enabling https to use some form of url-rewriting to forward http requests to https?

Can't have a server redirect someone that hasn't even established a connection.

Currently there just isn't a thing that does what you are asking for.

New tech is being developed (and mentioned in this article) to do things similar though.

Yes you can. 301 redirect. It's literally 5-10 lines in most web server configs.

Sure that means you still have to serve *something* over HTTP (the redirect), and yes that means you're still vulnerable to SSL stripping, but you can remedy that somewhat with 1-2 more lines in your config to add a HSTS header to your HTTP responses.
 
Upvote
28 (30 / -2)

Ajedi32

Wise, Aged Ars Veteran
114
[url=http:/civis/viewtopic.php?p=31520171#p31520171:230eghhj said:
LarryMocono[/url]":230eghhj]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?

That was the point. HTTPS doesn't protect against data breaches. Using HTTPS doesn't necessarily mean your site is "secure", it just means your connection is secure.
 
Upvote
36 (42 / -6)
[url=http:/civis/viewtopic.php?p=31520203#p31520203:3lgb2j72 said:
Ajedi32[/url]":3lgb2j72]
[url=http:/civis/viewtopic.php?p=31520171#p31520171:3lgb2j72 said:
LarryMocono[/url]":3lgb2j72]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?

That was the point. HTTPS doesn't protect against data breaches. Using HTTPS doesn't necessarily mean your site is "secure", it just means your connection is secure.

No one ever claimed it did. None of the HTTPS Anywhere people have said that it would prevent data breaches. It's to make eavesdropping harder.

So congratulations on winning against a strawman argument. *golf clap*
 
Upvote
-7 (28 / -35)
[url=http:/civis/viewtopic.php?p=31520203#p31520203:mier0e2o said:
Ajedi32[/url]":mier0e2o]
[url=http:/civis/viewtopic.php?p=31520171#p31520171:mier0e2o said:
LarryMocono[/url]":mier0e2o]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?

That was the point. HTTPS doesn't protect against data breaches. Using HTTPS doesn't necessarily mean your site is "secure", it just means your connection is secure.
Next you'll be telling me the web isn't the internet!
 
Upvote
11 (16 / -5)
[url=http:/civis/viewtopic.php?p=31520191#p31520191:3rbash93 said:
Ajedi32[/url]":3rbash93]
[url=http:/civis/viewtopic.php?p=31520151#p31520151:3rbash93 said:
viscious+ars2[/url]":3rbash93]
[url=http:/civis/viewtopic.php?p=31520073#p31520073:3rbash93 said:
willdude[/url]":3rbash93]Wouldn't the simplest fix for broken http links be for a server that's enabling https to use some form of url-rewriting to forward http requests to https?

Can't have a server redirect someone that hasn't even established a connection.

Currently there just isn't a thing that does what you are asking for.

New tech is being developed (and mentioned in this article) to do things similar though.

Yes you can. 301 redirect. It's literally 5-10 lines in most web server configs.

Sure that means you still have to serve *something* over HTTP (the redirect), and yes that means you're still vulnerable to SSL stripping, but you can remedy that somewhat with 1-2 more lines in your config to add a HSTS header to your HTTP responses.

No No.

No.

If you unencryptedly redirect from http://example.com/I-am-gay-in-a-countr ... steps.html to the https version. Then you have already lost.
 
Upvote
-10 (13 / -23)
Post content hidden for low score. Show…

daggar

Ars Tribunus Militum
2,255
[url=http:/civis/viewtopic.php?p=31520073#p31520073:3a6vzeke said:
willdude[/url]":3a6vzeke]Wouldn't the simplest fix for broken http links be for a server that's enabling https to use some form of url-rewriting to forward http requests to https?

That's a good per-server fix. For people with legacy servers, though, it takes time to go through them all and update them to that setting. Furthermore, people running low-price rented server space might not have sufficient access to the server config to get it to work.

Also, it's an extra technical detail. The fact that you asked that question means you're already well-versed in it. Someone who runs a hobby Wordpress site and isn't so technically-minded wouldn't find it so simple. Remember, just getting a non-techie up to speed on using a genuine plaintext editor is a hassle.
 
Upvote
12 (12 / 0)

Cumulonimbus Maximus

Ars Scholae Palatinae
649
Subscriptor++
HTTPS offers three things: secrecy, integrity, and authenticity.

I'd argue that this statement is debatable. I've seen articles on this very site detailing how a root CA that is less than trustworthy got into the root bundle in some browsers. I've also seen articles detailing how certificates were issued inappropriately for high profile domains from supposedly trusted CAs. I think this should maybe be reworded to "HTTPS is supposed to offer three things:"
 
Upvote
21 (23 / -2)
Post content hidden for low score. Show…

daggar

Ars Tribunus Militum
2,255
A point not brought up here: the (admittedly small) price of getting an HTTPS cert limited the usage of it by automated phishing and scam routines. Sure, it's easy to pay for one or two certs, but if you're bulk-generating virtual servers the price got high quickly. That's no longer the case with letsencrypt.

So, the green lock will soon be everywhere, and thus is will be less useful for picking out low-grade phishing schemes. Take your target financial site, spawn a hundred lookalike URL's and get them all green locks for the cost of one captcha each.
 
Upvote
19 (19 / 0)
Post content hidden for low score. Show…
Post content hidden for low score. Show…

jdale

Ars Legatus Legionis
18,817
Subscriptor
Simplifying the process of setting up HTTPS means more tools in your toolchain. It makes the individual more dependent on tools built by others. Developer Ben Klemens has an essay about exactly this dependency, writing that if "solving the problem consists of just starting a tool up, my sense of wonder has gone from 'Look what I did' to 'Look what these other people did,' which is time-efficient but not especially fun."

This seems an odd argument to me. I'm not writing the browser, I'm not writing the server, the router, the compiler, I'm not providing the internet connection or the data interconnects for the backbone. I'm writing a web page. Why should it offend me that I'm also not writing the HTTPS tools? The point of creating my website was not to show off my skills (if that was it, I would take it down right now). The point was to make some content available.
 
Upvote
53 (53 / 0)

Ajedi32

Wise, Aged Ars Veteran
114
True, using HTTPS doesn't necessarily mean your site is "secure", but *not* using HTTPS *does* mean your site is insecure. No matter what security measures you implement on your server, if you're not using HTTPS then anyone who visits your site is subject to a MITM attack.

And even if you (like Dave Winer) are not worried about the security of your site, you really *should* be concerned about the security of your site's *users*. A user visiting an insecure HTTP site is vulnerable to drive-by downloads, injected ads, and all sorts of other nasty things which a MITM attacker could take advantage of to potentially compromise their security. That's not something you should be exposing your site's users to. Use HTTPS.
 
Upvote
42 (42 / 0)

CraigJ ✅

Ars Legatus Legionis
27,010
Subscriptor
[url=http:/civis/viewtopic.php?p=31520171#p31520171:2y2xyih7 said:
LarryMocono[/url]":2y2xyih7]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?
It's an example of securing the connection but not the data, thus no security.

Kind of like putting a deadbolt on a cardboard door.
 
Upvote
-3 (11 / -14)

mmiller7

Ars Legatus Legionis
12,464
[url=http:/civis/viewtopic.php?p=31520277#p31520277:205whmi3 said:
daggar[/url]":205whmi3]
[url=http:/civis/viewtopic.php?p=31520073#p31520073:205whmi3 said:
willdude[/url]":205whmi3]Wouldn't the simplest fix for broken http links be for a server that's enabling https to use some form of url-rewriting to forward http requests to https?

That's a good per-server fix. For people with legacy servers, though, it takes time to go through them all and update them to that setting. Furthermore, people running low-price rented server space might not have sufficient access to the server config to get it to work.

Also, it's an extra technical detail. The fact that you asked that question means you're already well-versed in it. Someone who runs a hobby Wordpress site and isn't so technically-minded wouldn't find it so simple. Remember, just getting a non-techie up to speed on using a genuine plaintext editor is a hassle.
Or resources. I rent a low-power Atom box (about $10/mo) for a personal site hosting photo albums and hobby projects. With HTTP, it starts to bog down around 7-10 concurrent connections, when I tested a self-signed HTTPS it was bogging down around 5 concurrent sessions.

And while I work with Linux machines daily for my job and I can work my way thru manpages to figure it out, certainly you make another good point...a lot of people who run their own blog or something wouldn't have the sysadmin background to configure everything.
 
Upvote
11 (12 / -1)
[url=http:/civis/viewtopic.php?p=31520327#p31520327:jlg9f8al said:
CraigJ[/url]":jlg9f8al]
[url=http:/civis/viewtopic.php?p=31520171#p31520171:jlg9f8al said:
LarryMocono[/url]":jlg9f8al]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?
It's an example of securing the connection but not the data, thus no security.

Kind of like putting a deadbolt on a cardboard door.

Not really since using HTTPS on their website means that people couldn't have been MITMed and thus an attacker could have stolen their credit card info without it ever reaching Target to begin with.
 
Upvote
2 (7 / -5)
[url=http:/civis/viewtopic.php?p=31520085#p31520085:4mkhosvb said:
Rommel102[/url]":4mkhosvb]It doesn't have to be a magic bullet. Starting with a standard lock on the front door is better than nothing.

I believe the analogy would be closer to coming over to a friends house and closing the curtains so your nosy neighbors can't see what you are doing. If your friend has chosen not to actually put a lock on the door, nothing would stop those nosy neighbors from just coming over and opening the door to see what you are doing though, which is pretty much the entire point of this article.

Closing the curtains is a good thing, but you shouldn't take that to mean that what you are doing is *actually* private.
 
Upvote
8 (8 / 0)
Post content hidden for low score. Show…

J.King

Ars Praefectus
4,596
Subscriptor
[url=http:/civis/viewtopic.php?p=31520321#p31520321:h0tr69mh said:
jdale[/url]":h0tr69mh]
Simplifying the process of setting up HTTPS means more tools in your toolchain. It makes the individual more dependent on tools built by others. Developer Ben Klemens has an essay about exactly this dependency, writing that if "solving the problem consists of just starting a tool up, my sense of wonder has gone from 'Look what I did' to 'Look what these other people did,' which is time-efficient but not especially fun."

This seems an odd argument to me. I'm not writing the browser, I'm not writing the server, the router, the compiler, I'm not providing the internet connection or the data interconnects for the backbone. I'm writing a web page. Why should it offend me that I'm also not writing the HTTPS tools? The point of creating my website was not to show off my skills (if that was it, I would take it down right now). The point was to make some content available.

Agreed. I operate a Web server (among other things), and while I did not use the Certbot software to modify my configuration for me (it wasn't a practical option with nginx), I felt no nerd shame at using a graphical text editor rather than vim, or installing from a binary package rather than compiling from source. Please.

Tooling can break and then things can get messy, though, which is a problem. In my opinion ACME should be extended (or complimented by another spec like acmetool's) to specify exactly how certs live so that a server daemon needs only to listen on port 443, know an ACME base path (which would usually be a default), and that's the end of configuration.
 
Upvote
18 (18 / 0)
[url=http:/civis/viewtopic.php?p=31520113#p31520113:2rfotjcy said:
jeff234[/url]":2rfotjcy]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
 
Upvote
19 (19 / 0)
Post content hidden for low score. Show…

J.King

Ars Praefectus
4,596
Subscriptor
[url=http:/civis/viewtopic.php?p=31520487#p31520487:1364ydk7 said:
agrouf[/url]":1364ydk7]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:1364ydk7 said:
chickensevil[/url]":1364ydk7]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:1364ydk7 said:
jeff234[/url]":1364ydk7]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
Er... No? Bytes transferred will include the header, which may or may not include cookies, and any number of things. Plus the size of the payload itself will depend on cookies, compression, and other factors.

Edit: TLS also makes it opaque whether you're using HTTP/1.1 or HTTP/2, or indeed some completely unrelated protocol e.g. XMPP over port 443. Bytes transferred tells you one thing only : how many bytes were transferred.
 
Upvote
35 (35 / 0)

CraigJ ✅

Ars Legatus Legionis
27,010
Subscriptor
[url=http:/civis/viewtopic.php?p=31520349#p31520349:2c7y5uol said:
LarryMocono[/url]":2c7y5uol]
[url=http:/civis/viewtopic.php?p=31520327#p31520327:2c7y5uol said:
CraigJ[/url]":2c7y5uol]
[url=http:/civis/viewtopic.php?p=31520171#p31520171:2c7y5uol said:
LarryMocono[/url]":2c7y5uol]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?
It's an example of securing the connection but not the data, thus no security.

Kind of like putting a deadbolt on a cardboard door.

Not really since using HTTPS on their website means that people couldn't have been MITMed and thus an attacker could have stolen their credit card info without it ever reaching Target to begin with.

So you're saying that they could NOT have been MITM'd so an attacker could have stolen the card info before reaching Target?

/confused.

Are you suggesting that Target's HTTPS was also somehow compromised?

Setting that aside the point is that if a website uses TLS 1.3 with 4096-bit keys, but leaves the data unprotected once it gets there, that's almost like having no security at all. Yes, HTTPS minimizes the attack surface, but to extend my metaphor, what's the point of a triple bolted steel front door if you're going to leave your valuables out in plain sight viewable from the back door "secured" with a spring latch?
 
Upvote
5 (6 / -1)
Status
Not open for further replies.