How Cloudflare Images addressed the aCropalypse vulnerability
blog.cloudflare.com
blog.cloudflare.com
... erm, wasn't the original issue created by an undocumented change to File API semantics?
Not that I know how their backend works, and I'm sure their consume function is all super robust with every edge-case possible covered in the test suite..... but "Infallible" oh dear... :P
How do you add additional synchronous checks in the code without increasing latency? It might be negligible, but it isn't nothing.
> As the format is so regular, it’s easy to write a separate parser that just reads the prelude, loops through the chunks until we see IEND, and then checks if we have any bytes left. We can perform this check after decoding the image with lodepng, as this allows us to skip validating the checksums as lodepng has already checked them for us