Skip to main content
XsiSec.com
HomeReposBlogProjectsPortfolio
© 2026 XsiSec.com
Securitysecurity.txt
Updated 2026-07-30 · v1.0.0+2026-07-30.30ac6e5 · 30ac6e5
  1. Home
  2. ›Blog
  3. ›CSRF research and labs
Blog topic

CSRF research and labs

Cross-site request forgery writeups covering common bypasses, browser behavior, and effective mitigations.

15
Matching posts
CSRF with broken Referer validation – Article cover imageArticle

CSRF with broken Referer validation

CSRF with broken Referer validation: This lab's email change functionality is vulnerable to CSRF. It attempts to detect and block cross domain reques…

2022-11-30↗
csrflab8portswigger
CSRF where Referer validation depends on header being present – Article cover imageArticle

CSRF where Referer validation depends on header being present

CSRF where Referer validation depends on header being present: This lab's email change functionality is vulnerable to CSRF. Although the application…

2022-11-30↗
csrf
CSRF where token is duplicated in cookie – Article cover imageArticle

CSRF where token is duplicated in cookie

CSRF where token is duplicated in cookie: This lab’s email change functionality is vulnerable to CSRF. It uses the insecure "double submit" CSRF prev…

2022-11-30↗
csrflab6portswigger
CSRF where token is tied to non-session cookie – Article cover imageArticle

CSRF where token is tied to non-session cookie

CSRF where token is tied to non session cookie: This lab's email change functionality is vulnerable to CSRF. It uses tokens to try to prevent CSRF at…

2022-11-29↗
csrflab5portswigger
CSRF where token validation depends on request method – Article cover imageArticle

CSRF where token validation depends on request method

CSRF where token validation depends on request method: This lab's email change functionality is vulnerable to CSRF. It attempts to block CSRF attacks…

2022-11-24↗
csrflab2portswigger
CSRF vulnerability with no defenses – Article cover imageArticle

CSRF vulnerability with no defenses

CSRF vulnerability with no defenses: This lab's email change functionality is vulnerable to CSRF. • PortSwigger • CSRF • csrf, lab1

2022-11-24↗
csrflab1portswigger
CSRF where token validation depends on token being present – Article cover imageArticle

CSRF where token validation depends on token being present

CSRF where token validation depends on token being present: This lab’s email change functionality is vulnerable to CSRF. • PortSwigger • CSRF • lab3,…

2022-11-24↗
lab3csrf
Basic clickjacking with CSRF token protection – Article cover imageArticle

Basic clickjacking with CSRF token protection

Basic clickjacking with CSRF token protection: To solve the lab, craft some HTML that frames the account page and fools the user into deleting their…

2022-11-22↗
clickjackingcsrflab1
What is httpOnly and how does it work? – Article cover imageArticle

What is httpOnly and how does it work?

What is httpOnly and how does it work?: In the Lab 5 on portswigger DOM XSS in jQuery anchor href attribute sink using location.search source. I wasn…

2022-10-07↗
headershttponlycsrf
CSRF where token is duplicated in cookie – Article cover imageArticle

CSRF where token is duplicated in cookie

CSRF where token is duplicated in cookie: Exploit a double submit cookie CSRF implementation to change a logged in user’s email. The backend accepts…

2022-09-18↗
csrf
CSRF - where token is tied to non-session cookie – Article cover imageArticle

CSRF - where token is tied to non-session cookie

CSRF where token is tied to non session cookie: So I did the lab again one day afterwards because I really want to understand what is going. • Securi…

2022-07-11↗
csrfsecurity
CSRF - where token is not tied to user session – Article cover imageArticle

CSRF - where token is not tied to user session

CSRF where token is not tied to user session: This lab's email change functionality is vulnerable to CSRF. It uses tokens to try to prevent CSRF atta…

2022-07-10↗
csrfsecurity
CSRF where token validation depends on token being present – Article cover imageArticle

CSRF where token validation depends on token being present

CSRF where token validation depends on token being present: To solve the lab, use your exploit server to host an HTML page that uses a CSRF attack to…

2022-07-10↗
csrfsecurity
CSRF vulnerability with no defenses – Article cover imageArticle

CSRF vulnerability with no defenses

CSRF vulnerability with no defenses: PortSwigger Labs – CSRF I started working through all the labs on portswigger.net, beginning with the CSRF secti…

2022-07-10↗
broken-authenticationcsrf
Hack The Box Explore user-flag – Article cover imageArticle

Hack The Box Explore user-flag

Hack The Box Explore user flag: Capture at least one user flag per day. This entry documents a box where initial scans missed the path to user, follo…

2021-09-20↗
csrfnmapenumeration
Browse the complete archive →