Lurker News

Comments (992) 158 threads

Earlier comments
user59944612 replies#
> The greatest period of impact was from February 13 and February 18 with around 1 in every 3,300,000 HTTP requests through Cloudflare potentially resulting in memory leakage (that’s about 0.00003% of requests).

1) From the metrics I recalled when I interviewed there, and assuming the given probability is correct, that means a potential of 100k-200k paged with private data leaked every day.
2) What's the probably that a page is served to a cache engine? Not a clue. Let's assume 1/1000.
3) That puts a bound around a hundred leaked pages saved per day into caches.
4) Do the cache only provide the latest version of a page? I think most do but not all. Let's ignore that aspect.
5) What's the probably that a page contains private user information like auth tokens? Maybe 1/10?
6) So, that's 10 pages saved per day into the internet search caches.
7) That's on par with their announcement: "With the help of Google, Yahoo, Bing and others, we found 770 unique URIs that had been cached and which contained leaked memory. Those 770 unique URIs covered 161 unique domains." Well, not that we know for how long this was running.
8) Now, I don't want to downplay the issue, but leaking an dozen tokens per day is not that much of a disaster. Sure it's bad, but it's not remotely close to the leak of the millennia and it's certainly not internet scale leak.
9) For the record, CloudFlare serves over one BILLION human beings. Given the tone and the drama I expected way more data from this leak. This is a huge disappointment.
Happy Ending: You were probably not affected.

nathancahill1 reply#
I think your estimates fell apart at step 2, 1/1000 pages being cached. HTTP is aggressively cached, on many different layers. I'd put it closer to 1/10.
user59944611 reply#
I meant cached by a public service like Google Cache Bing Archive.org that expose the pages.

A browser cache might be 1/10 but that's not open.

nathancahill#
There's a lot of stuff in between those two extremes. As someone that operates an HTTP accelerator and caching server.
mattbee2 replies#
This assumes that the Bad Guys hadn't noticed the bug before Tavis, and hadn't started intensively mining Cloudflare for data.
user59944613 replies#
Intensive mining indeed, if it's true that it requires 3.3M requests to get a page leak.

With a fixed 100Mbps connection and assuming 2kB per HTTP request-response, you can hope to get one leak every 11 minutes and 6.6GB of traffic, which is a constant 5k requests/s.
Maybe if Google reassigns all its SHAterred ressources to doing that...
... and then I realize that we were talking about cloudflare and my mining bot a capcha.
---
edit: correction. The bug was affecting only some pages with some content filtering options enabled, and was more prominent under some specific circumstances.
Hence why it only happens 1/3.3M in average. An attacker could allegedly leak data much more reliably if he was able to identify the patterns that are more likely to trigger leaks.

gelatocar1 reply#
Couldn't an attacker construct a page that triggers the memory leak and just keep accessing that page to get different pieces of memory?

Continue this thread — 1 reply

firebones2 replies#
That's what was observed on the Cloudflare end. Without the multiplicand of how many pages Cloudflare served in a given amount of time, you can't determine the impact. Assuming that affected sites were affected en masse, a targeted attack from a connection would be minuscule compared to the pages Cloudflare serves.

Cloudflare is serving up more than 100Mbps; the attacker only has to zero in on what's fruitful, which yields something far higher than the 1 per 3.3M Cloudflare sees serving millions of innocuous requests.

Continue this thread — 2 replies

rmc#
Botnets
gukov1 reply#
I hope something like intense mining would've caused a detectable spike in turn alerting CF sooner. Looks like it didn't...
breakingcups#
Probably not. Cloudflare is designed to automatically swallow large increases in traffic.
spydum1 reply#
People are going to lambast CF for downplaying the impact, and there could be merit in that.

However, I really want to say I am absolutely impressed with both Project Zero AND Cloudflare on so many fronts, from clarity of communication, to collaboration, and rapid response. So many other organizations would have absolutely tanked when presented with this problem. Huge kudos for CF guys understanding the severity and aligning resources to make the fixes.
In terms of P0 and Tavis though, holy crap. Where the heck would we be without these guys? Truly inspiring !

Kalium3 replies#
CF's infosec team is very, very good at their jobs.
jrcii2 replies#
Obviously not, right?
Kalium4 replies#
They're human too. Look at the response times!

Continue this thread — 4 replies

meowface#
Application security team? Probably needs work.

But their overall response to this was still good, and very quick given the scale of the issue.

sneak1 reply#
Then why are they talking about that 3000-ish number instead of the 7 million number?
stock_toaster#
I assume their writeup got filtered through PR and Legal.
zackbloom#
To be fair there's a timeline in the post.
jgrahamc3 replies#
From my blog on this:

    The three features implicated were rolled out as follows.
    The earliest date memory could have leaked is 2016-09-22.

    2016-09-22 Automatic HTTP Rewrites enabled
    2017-01-30 Server-Side Excludes migrated to new parser
    2017-02-13 Email Obfuscation partially migrated to new parser
    2017-02-18 Google reports problem to Cloudflare and leak is stopped
benwilber02 replies#
Well fuck. I have no idea what (if any, or all) of my authenticated web sessions have been going through CloudFlare in the last 6 months. How do I even start to protect myself from this?
rickhanlonii#
Reset everything you don't want to assume is public
sarcasmic2 replies#
1. rotate passwords, tokens, auth stuff on any and all service you use that may have used CloudFlare in this time period (as of time of writing this list has not been enumerated)

2. hope that no personally-identifiable info or damaging plaintext that can be tied back to you has been exposed, but you will probably never know for sure
3. join class action lawsuits if you so desire and receive the chump change that is your share once they inevitably get settled
4. ponder what it truly means to willingly (or unknowingly) give information to or through a "trusted third-party" who may employ other "trusted third-parties"
5. languish in unsatisfactory answers and outcomes, return to step 2.

Continue this thread — 2 replies

dantiberian#
With respect, the blog post buries the user with details. In my opinion, there should have been in bold at the top something like:

Title: Security report on memory disclosure caused by Cloudflare parser bug
(This is a security report, "incident" underplays this. Memory leak sounds a lot more innocuous than memory disclosure).
Data from any website that was proxied via Cloudflare since September 22, 2016 may have been leaked to third parties via a bug in Cloudflare's HTML parser. Operators using Cloudflare should:
* Invalidate session cookies
* Reset user passwords
* Rotate secrets
* Inform users that private data (chats, pictures, passwords, ...) may have been inadvertently leaked by Cloudflare.
* ...
Users using websites proxied by Cloudflare should:
* Reset their passwords
* Log in/out of sessions to remove session tokens
(Begin rest of post)
Last Friday, Tavis Ormandy from Google’s Project Zero contacted Cloudflare to report a security problem with our edge servers. He was seeing corrupted web pages being returned by some HTTP requests run through Cloudflare. ...

clebio1 reply#
not trolling, I followed your HN profile link: what blog post? http://blog.jgc.org/
Xorlev#
> One of the advantages of being a service is that bugs can go from reported to fixed in minutes to hours instead of months. The industry standard time allowed to deploy a fix for a bug like this is usually three months; we were completely finished globally in under 7 hours with an initial mitigation in 47 minutes.

Great, that makes me feel so much better! I'm sorry, don't try to put a cherry on the top when you've just leaked PII and encrypted communications.
Additionally, most vendors in the industry aren't deployed in front of quite as much traffic as CloudFlare is. It's a miracle that ProjectZero managed to find the issue.

Load more comments