A Solution to Compression Oracles on the Web
blog.cloudflare.com
blog.cloudflare.com
> We found that in most cases a secret within a webpage can be described in terms of a classical regular expression.
Not sure I'd want to rely on a regex that identifies the right chunk most of the time..... that sounds fragile, easy to accidentally break with a routine update of the page. Explicitly tagging the secret portion seems like a more robust approach.
If we didn't echo any user input data to the page, then we aren't affected by BREACH, right?
The PoC is an Nginx module which identifies potentially secret parts of the response using a regular expression matcher, and avoids adding these to the compression dictionary.