Web Cache Deception

Detects server configurations that may serve personalized content under cacheable URLs, enabling web cache deception attacks.

zakirkun e72bae7 2 files · 2.0 KB Updated

File contents

Web Cache Deception

Overview

Web cache deception exploits a discrepancy between how the server and cache interpret URL paths. An attacker tricks a victim into visiting https://example.com/profile/nonexistent.css — the server ignores the .css extension and serves the authenticated profile page, but the CDN caches it as a public CSS file. The attacker then retrieves the cached authenticated response.

Remediation

  • Cache responses based on their Content-Type, not URL extension
  • Never cache authenticated API responses
  • Set Cache-Control: no-store for all authenticated/personalized content

zakirkun/ice-tea/tree/main/skills/web/web-cache-deception commit e72bae7a4e

Frequently asked questions

npx skillmds@latest add zakirkun/web-cache-deception