by kalib_tweli · 2y ago · 0 comments
You simply shouldn't have any challenges whatsoever on an RSS feed. They're literally meant to be read by a machine.
The issue here is that Cloudflare's content type check is naive. And the fact that CF is checking the content-type header directly needs to be made more explicit OR they need to do a file type check.
There were compatibility issues with other type headers, at least in the past.
'application/rss+xml' (for RSS)
'application/atom+xml' (for Atom)
Would not surprise me if Cloudflare lumps this in with text/html protections.
Since the user-agent has no way to distinguish scripts injected by cloudflare from scripts originating from the actual website, in order to pass the challenge they are forced to execute arbitrary code from an untrusted party. And malicious Javascript is practically ubiquitous on the general internet.