Skip to main content
This page aggregates cross-platform resources to practice CSRF (Cross-Site Request Forgery): retired Hack The Box machines, PortSwigger Web Security Academy labs and TryHackMe rooms, plus curated resources (HackTricks, PortSwigger, etc.) and related skills. Coverage: 19 challenges across 3 platforms — 2 HackTheBox · 15 PortSwigger · 2 TryHackMe. 2 with a Spanish writeup, 2 with a video writeup.

Where to start

Ordered by actual difficulty. At the same level: isolated lab first, then the guided room, and the full machine last.
  1. PortSwiggerBasic clickjacking with CSRF token protection (Apprentice) · 🇬🇧
  2. PortSwiggerCSRF vulnerability with no defenses (Apprentice) · 🇬🇧
  3. TryHackMeCustom Tooling Using Python (Easy · ~60 min) · 🇬🇧
  4. PortSwiggerBypassing SameSite cookie restrictions (Practitioner) · 🇬🇧
  5. PortSwiggerCSRF where Referer validation depends on header being present (Practitioner) · 🇬🇧
  6. PortSwiggerCSRF where token is duplicated in cookie (Practitioner) · 🇬🇧

Curated resources

HTB machines practicing CSRF (Cross-Site Request Forgery) (2)

PortSwigger labs practicing CSRF (Cross-Site Request Forgery) (15)

TryHackMe rooms practicing CSRF (Cross-Site Request Forgery) (2)


Back to the full glossary Last updated: 2026-08-24