$ ./guess_the_languageCybersecurity
Cybersecurity · hard · #313

A CDN caches a page that reflects an unkeyed X-Forwarded-Host header. What is the main defence against web cache poisoning?

  1. Raise the cache TTL
  2. Enable HTTP/2 everywhere
  3. Key or ignore that input
  4. Add a CSRF token there
Poisoning works when an input changes the response but is not part of the cache key. Either add it to the key or stop the app from trusting and reflecting it.
Play Cybersecurity ▸