News for hackers. Stuff that matters.
Re:Life Is About to Get Harder for Websites Without HTTPS by eliben on Wednesday July 12, 2017 @12:50AM (#14750190)
Serious question: if I just run a simple blog with static HTML hosted with Apache, do I really need HTTPS? Will I be penalized by not having it?
Re:Life Is About to Get Harder for Websites Without HTTPS by 3pt14159 on Wednesday July 12, 2017 @01:46AM (#14750376)
3% of routers in Canada and the US have some kind of malware in them, and almost all other countries are worse off. You might not need HTTPS, but I need you to have it so I can trust downloading a PDF when I'm on your site. I need it so I don't get MITM by some shitty black hat tracking company. I need it so while I travel I don't have to worry about shitty governments tracking what I'm reading or watching.

And if your answer is "sure, but there will be other websites that are HTTP" my response is "yeah, but one day soon when enough of the web is secure I'm going to disallow all HTTP connections from my browser". And eventually I'll disallow all connections that aren't on HSTS preload lists. And eventually, hopefully, I'll disallow websites that don't have HPKP with long expires.

Re:Life Is About to Get Harder for Websites Without HTTPS by blfr on Wednesday July 12, 2017 @03:43AM (#14750831)
> eventually, hopefully, I'll disallow websites that don't have HPKP with long expires

I doubt HPKP will ever see wide adoption. At least not in the form it has now. It's just too damn easy to bork the config and take your entire site offline with no way to remedy that error.

Re:Life Is About to Get Harder for Websites Without HTTPS by 3pt14159 on Wednesday July 12, 2017 @05:46PM (#14756981)
Not really. Just put a root level cert or two as your backups.
Re:Life Is About to Get Harder for Websites Without HTTPS by pjmlp on Wednesday July 12, 2017 @02:23AM (#14750522)
Then let me tell you it is quite easy to MITM by any company owning part of the connection.

Many moons ago I was using a proxy engine capable of unpacking/packing HTTPS requests.

It was an in-house proxy taking advantage of Apache and IIS APIs for certificate management and SSL connections.

We used it for debugging secure connections, but I can easily envision other purposes.

Many years have passed since 2000, but I am quite sure it is still quite possible to do it.

Re:Life Is About to Get Harder for Websites Without HTTPS by agrajag on Wednesday July 12, 2017 @02:47AM (#14750621)
Proxies that do https inspection act as a client to the destination server, decrypt traffic, then reencrypt locally using a self-signed (or otherwise non publically trusted) certificate.

In short, you can intercept the traffic, but it relies on the client explicitly trusting your certificate. This is the foundation of all security on the web.

Re:Life Is About to Get Harder for Websites Without HTTPS by pjmlp on Wednesday July 12, 2017 @02:51AM (#14750633)
My certificate is the original certificate.

We weren't using an off-the-shelf proxy, rather some nice debugging tools with extra help from the networking layering.

Maybe TLS is more full-proof to Website replication with DNS spoofing and a few other tricks, but they did work without issues in SSL 1.0 connections, using modified web servers.

Re:Life Is About to Get Harder for Websites Without HTTPS by dx034 on Wednesday July 12, 2017 @03:15AM (#14750719)
You'd still not be able to MITM traffic while I see the same fingerprint as usually? Either the traffic looks like http to me or it's a different certificate.
Re:Life Is About to Get Harder for Websites Without HTTPS by pjmlp on Wednesday July 12, 2017 @03:26AM (#14750769)
We did it, I already explained a bit in another post.

As mentioned this was done with SSL 1.0, I don't know if a similar set of tricks could be done with TLS, as I am out of these type of applications since 2000.

Now believe whatever you want, but I am sure of what I programmed in 2000, the infrastructure we had and gladly explain it in job interviews where confidentiality is assured.

Re:Life Is About to Get Harder for Websites Without HTTPS by laumars on Wednesday July 12, 2017 @04:17AM (#14750946)
SSL 1.0 wasn't even supported by many of the earlier builds of Internet Explorer on Windows XP, with SSL 2 getting deprecated around the time of XP. Even SSL 3 - the last of the SSL protocols - has now largely been deprecated bar a few misconfigured servers.

Furthermore TLS 1.0 has been supported since XP but even that is now in the process of being deprecated.

So your attack, if it did depend on SSL v1.0, is so outdated that it's not even worth mentioning. And certainly not in the way that you announced "let me tell you it is quite easy to MITM by any company owning part of the connection."

(Please excuse me using "Windows XP" for approximate timeframes. I can't remember the exact year for when these protocols were phased out but I can remember which devices we had to support).

edit: It was bugging me that I didn't really know much about SSL 1.0 compared with the later protocols so I decided to do a bit of reading. It turns out the reason I don't know much about SSL 1.0 was because it was never publically released[1].

Which makes me even more puzzled about your anecdote as why would you even want to run an SSL 1.0 proxy when even back in the year 2000 no devices were supporting it. Either way it's certainly not proof of the ease of which SSL can be MITMed.

[1] https://en.wikipedia.org/wiki/Transport_Layer_Security#SSL_1...

Re:Life Is About to Get Harder for Websites Without HTTPS by willstrafach on Wednesday July 12, 2017 @04:53PM (#14756577)
What you are describing does not make sense. TLS would be pointless if this were possible.
Re:Life Is About to Get Harder for Websites Without HTTPS by laumars on Wednesday July 12, 2017 @02:36AM (#14750572)
I won't comment on how you built your proxy but HTTPS has come a long way since, eg TLS wasn't common back then and SSL has since been deprecated.

These days the only viable way to MITM HTTPS is to either attack the connection while it's in plain text HTTP (ie before the browser redirects to HTTPS:// (which is where the HSTS header comes in to play - it's cached by browsers telling them to default to HTTPS and never attempt a plain text connection) or to form your own HTTPS connection with your own CA signed certificate for the target site. Which would mean you'd either need to compromise a signing authority or have your own CA certs already installed on the victims PC (the latter is what some bad ISPs reportedly do when they inject ads).

Edit: I believe some corporate network proxies also work on the principal of having their own CA certs on their business workstations - so maybe this was how your proxy worked as well?

Re:Life Is About to Get Harder for Websites Without HTTPS by cm2187 on Wednesday July 12, 2017 @03:54AM (#14750878)
Or for smtp and imap traffic to do a downgrade attack (STARTTLS downgrade). The committee that set encryption to be optional and downgradable in modern smtp/imap over TLS should be placed against a wall. In the history of moronic decisions... All that to save a port.
Re:Life Is About to Get Harder for Websites Without HTTPS by pjmlp on Wednesday July 12, 2017 @02:47AM (#14750620)
I can't disclose much, but can give a very basic idea regarding SSL.

That information eventually needs to be unpacked, so you get a replicate of the destination site with the same certificates, which you can easily download by pretending to be a browser, but running on your modified server, which then unwraps, repackages and then forwards the request to the original server.

Since one owns the server, it is also relatively easy to disable whatever validations the SSL algorithm requires at library level.

So I don't know TLS and since 2000 I don't mess with this kind of stuff, but I don't think similar approaches aren't possible.

Re:Life Is About to Get Harder for Websites Without HTTPS by Freak_NL on Wednesday July 12, 2017 @03:35AM (#14750799)
You can't download the private part of the TLS certificate by pretending to be a browser. You can't publicly download it at all. Your browser comes with a chain of public certificates from reputable CA vendors, and you verify that a site is who it claims to be by using their public certificate (which your browser downloads).

The only way they can succeed in proving who they are, is if their server has access to the corresponding private key of the certificate, which is why you can't spoof a properly secured site unless you either hack their server, crack the encryption, or install your phony certificate on the client (which is what corporations sometimes mandate). That's it.

It's been 17 years since 2000. Whatever security hole you may have used (if any) has long since been patched. The weak cyphers used in some SSL versions which you may have depended on are mostly gone (certainly from high profile targets).

If what you state is true, now in 2017, then there would have to be a huge conspiracy which involves all browser vendors (including Mozilla), as well as all national governments and the EU that hides this fact from the people. All software developers who do catch on (the relevant source code is open source after all) would have to bribed or threatened into silence too.

You are either misinformed or consciously spreading misinformation.

Re:Life Is About to Get Harder for Websites Without HTTPS by laumars on Wednesday July 12, 2017 @04:04AM (#14750908)
> It's been 17 years since 2000. Whatever security hole you may have used (if any) has long since been patched. The weak cyphers used in some SSL versions which you may have depended on are mostly gone (certainly from high profile targets).

I very much doubt he was even doing anything that clever. Since it was a corporate network he probably just had their corporate CA certificate already built as part of the company machine images / build scripts. He possibly might not even have been aware this was happening if the IT department was large enough that different coworkers managed the desktops from himself.

The "I can't disclose much" argument on a 2 decade old hack is effectively just saying "I can't remember the details" or "I wasn't directly involved in setting up the proxy". Either way, while much has changed in the last 17 years, the practice of some businesses installing their own CA certificates on company assets has been a fairly standard way for corporate proxies to intercept HTTPS traffic. And a great deal less trouble than relying on SSL vulnerabilities since you already own and deploy the destination hardware+software anyway.

Re:Life Is About to Get Harder for Websites Without HTTPS by pjmlp on Wednesday July 12, 2017 @04:16AM (#14750940)
Anyone can easily find me on the net and I don't need to have fun speaking with lawyers.

Believe me or not, I don't care.

Re:Life Is About to Get Harder for Websites Without HTTPS by laumars on Wednesday July 12, 2017 @04:34AM (#14751011)
I don't really understand what lawyers have to do with the discussion but I certainly do believe you that you had an in-house proxy that did MITM HTTPS traffic. Lots of businesses do. The problem is you said "let me tell you it is quite easy to MITM by any company owning part of the connection" using that as your example. While your anecdote may be true, the statement it is trying to support simply isn't true and neither was your description of how SSL works (eg the proxy server being able to disable the client libraries SSL checks).

So it's not that I don't believe your anecdote - I'm sure that did happen in some form or other - but the nature of the exploit either isn't how you described or is so old and long since patched that it hasn't been exploitable in more than a decade thus isn't relevant to the statement you were trying to support.

Re:Life Is About to Get Harder for Websites Without HTTPS by laumars on Wednesday July 12, 2017 @03:45AM (#14750840)
You're loosely describing the 2nd attack I mentioned but overlooking the issue of the SSL handshake. You cannot perform your attack without having the server's private key, which as name suggests, is privately stored on the remote TLS endpoint. The private key is used to confirm that the client has received the websites certificates without getting MITMed. Since you don't have the websites private key you cannot use their public key in the way you described.

The workaround for that is to create your own SSL certificate for that website (this will create you a public certificate and private key). Which means you will also need that new certificate CA signed otherwise the client (who's own SSL validations you cannot remotely disable like you implied) will give the user a warning about an untrusted certificate (the message will vary from client to client). This means you either need access to the targeted client to install your own CA certs, or you need access to a compromised signing authority.

Re:Life Is About to Get Harder for Websites Without HTTPS by anilgulecha on Wednesday July 12, 2017 @03:35AM (#14750803)
They are not. Either I get content as the key'ed server sent it, or I do not. MITM of a https source under the same domain is not possible (caveate is manually accepting a new certificate in my local browser).
Re:Life Is About to Get Harder for Websites Without HTTPS by lmm on Wednesday July 12, 2017 @06:20AM (#14751362)
People who can MITM you when you use HTTPS: the company that owns the certificate, the software on your local system, people who are capable of subverting one or the other (i.e. state-level attackers), any of the 150-odd CAs if it's willing to burn its entire business to do so (certificate transparency).

People who can MITM you when you use HTTP: any entity on e.g. http://www.bgplookingglass.com/list-of-autonomous-system-num...

Re:Life Is About to Get Harder for Websites Without HTTPS by will_hughes on Wednesday July 12, 2017 @02:41AM (#14750598)
> I need it so while I travel I don't have to worry about shitty governments tracking what I'm reading or watching.

For this reason I used a VPN while travelling overseas. Most places have wifi of varying quality. To my dismay/horror, I found that Hilton charge EUR15/day for the privelege of using a VPN.

Re:Life Is About to Get Harder for Websites Without HTTPS by tajen on Wednesday July 12, 2017 @03:49AM (#14750855)
Does that mean Hilton makes 15€/day injecting users who don't secure their traffic?
Re:Life Is About to Get Harder for Websites Without HTTPS by nandhp on Wednesday July 12, 2017 @12:15PM (#14753763)
Does Hilton actually block VPNs on their standard internet, or is "VPN access" just code for "we'll give you a public IP so that IPsec traffic won't get swallowed"?
Re:Life Is About to Get Harder for Websites Without HTTPS by xfer on Wednesday July 12, 2017 @02:38AM (#14750581)
The question was about static HTML pages, so the government can track what you are reading or watching.
Re:Life Is About to Get Harder for Websites Without HTTPS by tonyarkles on Wednesday July 12, 2017 @04:24PM (#14756302)
3%?! Do you have a link where I can read more? That's horrifying!
Re:Life Is About to Get Harder for Websites Without HTTPS by jaas on Wednesday July 12, 2017 @01:03AM (#14750224)
You won't have confidence that your visitors see the content you serve as you intend because it can be modified in transit. Your visitors will be broadcasting at least the exact address of the pages they read on your blog, and are vulnerable to anything that gets injected into your traffic in transit (e.g. malicious script).

Every website should use HTTPS. It's the right thing to do. It's not hard to do these days.

Re:Life Is About to Get Harder for Websites Without HTTPS by reustle on Wednesday July 12, 2017 @01:06AM (#14750235)
> Every website should use HTTPS. It's the right thing to do. It's not hard to do these days.

Unless you use simple tools like GitHub pages. I have a bunch of tiny JS heavy static projects on Pages that I can't easily add HTTPS to.

Re:Life Is About to Get Harder for Websites Without HTTPS by jopsen on Wednesday July 12, 2017 @01:33AM (#14750316)
Github pages has https, see: https://github.com/blog/2186-https-for-github-pages

There are legacy setups like S3 with custom domains, probably github pages with custom domain. But in both cases there is no reason not to be using cloudfront or cloudflare.

Re:Life Is About to Get Harder for Websites Without HTTPS by anilgulecha on Wednesday July 12, 2017 @03:38AM (#14750811)
I am hopeful github/tumblr and other static hosting services will add in letsenrypt setup once browsers start showing these as "not secure". There will be a dip in user engagement otherwise, as the main article points out.
Re:Life Is About to Get Harder for Websites Without HTTPS by kiliankoe on Wednesday July 12, 2017 @04:26AM (#14750983)
I'm using gh pages for my site, on a custom domain. I really don't want to use cloudflare or similar services for personal reasons. Afaict there's not really any other option though :/ I'd love it if GitHub were able to provide me with a LetsEncrypt cert. I've written to them about this before, but they said there was nothing planned yet.
Re:Life Is About to Get Harder for Websites Without HTTPS by lucideer on Wednesday July 12, 2017 @08:31AM (#14751916)
FWIW, I use Gitlab Pages for the same, and they allow you to provide your own cert (be it LetsEncrypt or otherwise). This has become a good bit easier to administer since LE added support for DNS verification, bit you're right, it would be cool to see these providers adding in built LE automated certs.
Re:Life Is About to Get Harder for Websites Without HTTPS by bikebilly on Wednesday July 12, 2017 @12:53PM (#14754168)
Thanks for the feedback, there is actually an issue regarding this topic: https://gitlab.com/gitlab-org/gitlab-ce/issues/28996. Feel free to contribute to it!
Re:Life Is About to Get Harder for Websites Without HTTPS by james-skemp on Wednesday July 12, 2017 @11:35AM (#14753411)
I've been doing the same. Unfortunately, it seems that if I want to update my cert I have to remove the domain and then add it back in.

Are you aware of a workaround? Otherwise, I agree with the ease now that LE supports DNS verification. I just wish we could edit existing domains in Gitlab.

Re:Life Is About to Get Harder for Websites Without HTTPS by bikebilly on Wednesday July 12, 2017 @12:54PM (#14754174)
It's a good point, I just opened an issue about that, feel free to add more context on it: https://gitlab.com/gitlab-org/gitlab-ce/issues/35022
Re:Life Is About to Get Harder for Websites Without HTTPS by kiliankoe on Wednesday July 12, 2017 @08:36AM (#14751941)
That's pretty cool and interesting, thanks for the tip! :)
Re:Life Is About to Get Harder for Websites Without HTTPS by nothrabannosir on Wednesday July 12, 2017 @01:53AM (#14750407)
Tumblr with custom domain doesn't allow cloud flare. No way to enable https.

I understand that's not technically "your problem", but since you mentioned it, just thought I'd let you know :)

It's unfortunate, because tumblr really is a great blog hosting software and service, if you don't use the social aspects of it.

Re:Life Is About to Get Harder for Websites Without HTTPS by jopsen on Saturday July 15, 2017 @01:55AM (#14775212)
You could plausibly use cloudfront, I don't know what tumblr's policies are.

But these aren't technical limitations! I don't know why Tumblr retricts you from using cloudflare, presumably because they want to control your content.

My two cents, don't use a free hosting service. S3+cloudfront is dirt cheap and will do the trick.

Re:Life Is About to Get Harder for Websites Without HTTPS by archagon on Wednesday July 12, 2017 @07:05AM (#14751520)
That is only a facade of security, since you have to assume trustworthy behavior on the part of Cloudfront and Cloudflare.

I'd rather deal with the very occasional “why not secure?” e-mail rather than pretend my site is actually secure. (I only serve static pages, not forms.)

Re:Life Is About to Get Harder for Websites Without HTTPS by jopsen on Wednesday July 12, 2017 @03:20PM (#14755697)
Yes and no, if the github pages is served from S3 or other resource inside AWS network, then cloudfront would be safe.

And regardless of that it offers privacy for your users.

Beyond privacy it also vastly improve security too, since users are most likely to have malware and ads injected by an infected wifi router.

It also increases complexity of an attacker that has control of the local machine, since they'll now have to install a custom root certificate.

Nothing is perfectly safe, all we can do is raise the bar.

Re:Life Is About to Get Harder for Websites Without HTTPS by ehnto on Wednesday July 12, 2017 @01:24AM (#14750282)
That doesn't really change the parent comment. Just because it's harder sometimes doesn't mean it shouldn't be done.

A current project of mine has some usability issues because it accepts external API requests but I won't allow non HTTPS. It would give me great pleasure to accept all possible APIs, but it's just not right to open users to that risk.

Re:Life Is About to Get Harder for Websites Without HTTPS by MBlume on Wednesday July 12, 2017 @01:31AM (#14750309)
I'm probably misreading you somehow -- if your site is hosted by Github isn't it already HTTPS?
Re:Life Is About to Get Harder for Websites Without HTTPS by Santosh83 on Wednesday July 12, 2017 @02:11AM (#14750476)
It is, unless you want to use a custom domain with it. With the latter case your only choice to retain some semblance of HTTPS is to put it behind a CDN, but that still breaks end-to-end HTTPS. The problem really has to solved at Github's end, by allowing users to upload their own certs.
Re:Life Is About to Get Harder for Websites Without HTTPS by agrajag on Wednesday July 12, 2017 @03:11AM (#14750697)
You can set your own cert on the CDN though, and have the CDN request origin objects over https from the github domain. Since the CDN is the endpoint for your domain, you'll still be presenting a custom domain to your users.
Re:Life Is About to Get Harder for Websites Without HTTPS by icebraining on Wednesday July 12, 2017 @05:19AM (#14751150)
Which CDNs support that kind of domain translation?
Re:Life Is About to Get Harder for Websites Without HTTPS by teraflop on Wednesday July 12, 2017 @02:21AM (#14750516)
Wait, how is serving your content through Github's servers using your own certificate any more secure than letting GitHub or CloudFlare provide the cert?
Re:Life Is About to Get Harder for Websites Without HTTPS by IanCal on Wednesday July 12, 2017 @03:46AM (#14750846)
It's arguably more secure than letting cloudflare do it (adding a new party doesn't make the chain more secure) but it doesn't have to be more secure than using githubs cert. It's just that you can't use githubs cert with your own custom domain.
Re:Life Is About to Get Harder for Websites Without HTTPS by clfougner on Wednesday July 12, 2017 @01:30AM (#14750304)
Route your page through Cloudflare (or presumably any other CDN) and you can get HTTPS set up on your Github Pages hosted static site quite trivially.
Re:Life Is About to Get Harder for Websites Without HTTPS by busterarm on Wednesday July 12, 2017 @01:32AM (#14750314)
For $5 month you could through up what is likely to be an adequate nginx proxy on Lightsail or similar and serve letsencrypt certs for all of your projects/domains.

It's not really that hard. Set up auto-renew, make sure the box is up to date and properly firewalled. You won't really have to think much about it.

Re:Life Is About to Get Harder for Websites Without HTTPS by rzzzt on Wednesday July 12, 2017 @01:48AM (#14750380)
Re:Life Is About to Get Harder for Websites Without HTTPS by djsumdog on Wednesday July 12, 2017 @01:41AM (#14750354)
Exactly. I remember viewing my website over a mobile connection in the UK and getting an ISP banner at the top of the page! Injected right into my HTML!
Re:Life Is About to Get Harder for Websites Without HTTPS by JonRB on Wednesday July 12, 2017 @12:59AM (#14750212)
My understanding is that you will already be ranked lower on search engines.

My main concern with this happening is that browsers are going to get a reputation for being 'alarmist', so when something really goes wrong, they won't be able to communicate it effectively.

Re:Life Is About to Get Harder for Websites Without HTTPS by mholt on Wednesday July 12, 2017 @03:03AM (#14750670)
Answer: https://doesmysiteneedhttps.com

Yes, search engines will penalize you. ISPs will intercept traffic and change it. Your site will load slower. The problems with plain HTTP go on and on.

Re:Life Is About to Get Harder for Websites Without HTTPS by saagarjha on Wednesday July 12, 2017 @12:55AM (#14750198)
It doesn't look like it right now:

> all websites with form fields served over HTTP will show a "Not secure" warning to the user

As long as you don't have a form field, you should be fine.

Re:Life Is About to Get Harder for Websites Without HTTPS by marksomnian on Wednesday July 12, 2017 @01:52AM (#14750400)
I believe the Chrome team has (or at least had) long term plans to mark all HTTP sites as actively dangerous, form fields or not. So, you'll be fine for now, but there will come a point when you will need to implement HTTPS.