Skip to main content
XsiSec.com
HomeReposBlogProjectsPortfolio
© 2026 XsiSec.com
Security rules |security.txt
Updated 2026-08-15 · v1.0.0+2026-08-14.82f92cb · 82f92cb
← Back to overview
Security article

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, but only applies defenses to certain types of requests. • PortSwigger • CSRF • csrf, lab2

2022-11-243 tags
Tags

This lab's email change functionality is vulnerable to CSRF. It attempts to block CSRF attacks, but only applies defenses to certain types of requests.

To solve the lab, use your exploit server to host an HTML page that uses a CSRF attack to change the viewer's email address.

You can log in to your own account using the following credentials: wiener:peter

I started of with intercepting the reuqest within burp-suite afterwards

I crafted with the CSRF PoC tool within burp following HTML:

 

html
  history.pushState('', '', '/')        document.forms[0].submit(); 

The email is updated

Though I didnt solve the lab but when I remove the post method it works.

 

html
 history.pushState('', '', '/')      document.forms[0].submit(); 

Search
Explore

Popular tags

Browse all 30 tags

Comments

0 comments

No comments yet — be the first to comment.