Bypassing CSRF Token Randomization Using an XSS Flaw

Anti-CSRF tokens stop a classic cross-site request forgery attack, but they assume the attacker can’t read the page. An XSS vulnerability breaks that assumption. Here I chain a stored XSS flaw on the SEED Labs Elgg platform to exfiltrate a victim’s session cookie and CSRF tokens, then replay any authenticated action as them.

November 12, 2026 · 5 min · 969 words · Akshit Kathuria