The root cause is apparently coming from auto-generated code that causes buffer overrun:
/* generated code */
if ( ++p == pe )
goto _test_eof;
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.
Just stop using pointer arithmetic and manually managed buffers for anything security/safety related already.
Had this proxy been written in nearly any other language it wouldn't have had this vulnerability, like so many similar vulnerabilities. Using ML or Rust or Java or whatever doesn't magically make all vulnerabilities disappear but it sure makes those that are intrinsic to C disappear. And that's not just a few. There is just no excuse.
Every piece of dependency in your stack is a vulnerability vector. I feel like this is the only sane assumption to make these days. Yesterday I was thinking of doing some stuff with cloudflare and today I'm reading this report.
Comments (992) 158 threads
Earlier commentsWe're definitely doomed to repeat the same mistakes over and over.
The examples in the report shows Uber, okcupid , etc. It would be good to know the full list, to know what password might have been compromised.
https://blog.cloudflare.com/incident-report-on-memory-leak-c...
I'm currently just searching the Alexa top 10,000 doing DNS scraping, but I'll updating it with reverse resolves from cloudflare.com/ips/ next.
Had this proxy been written in nearly any other language it wouldn't have had this vulnerability, like so many similar vulnerabilities.
Using ML or Rust or Java or whatever doesn't magically make all vulnerabilities disappear but it sure makes those that are intrinsic to C disappear. And that's not just a few.
There is just no excuse.
The modern web requires a paranoid attitude.
All comments shown.
Couldn't load more comments. Check your connection and try again.