How Cache Poisoning Led to Critical Acct Takeover in TikTok's Web
summary
A misconfigured CDN caches 302 and 404 responses carrying OAuth codes, enabling zero-click ATO and a later one‑click ATO by abusing a previous_url state parameter; an attacker runs a Python polling script, waits the 15-second golden window, captures the cached Location or secondary header with the code, and redeems it for a token. Short TTLs (~<10s) limit but don’t prevent exploitation. Fixes applied: block caching of code/state paths and stop redirects when code appears, but path‑traversal and header leaks require broader cache key misconfiguration remediation.
AI-written summary · about
