Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) image
Cross-Site Request Forgery (CSRF) is when your browser gets tricked into doing something, like submitting a form using your login, without you knowing.

It works because browsers send your cookies automatically, even if the request comes from another site. That means an attacker can abuse your login to perform actions on your behalf.

Best way to stop it?

Use CSRF tokens, set SameSite on cookies, and don’t trust requests just because the user’s logged in.
The Future of Intelligent Quality is Here image
Smarter testing starts now with Sembi IQ, bringing AI-powered enhancements to TestRail, Xray, and Designwise.
Explore MoT
Xray AI in action: Test Case & Model Generation for modern QA teams image
Wed, 17 Sep
with Ivan Fillipov, Solution Architect at Xray
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts.
Leading with Quality
A one-day educational experience to help business lead with expanding quality engineering and testing practices.
This Week in Testing image
Debrief the week in Testing via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter
We'll keep you up to date on all the testing trends.