From the course: Security in ASP.NET Core
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Cross-Site Request Forgery (CSRF): The attack - ASP.NET Tutorial
From the course: Security in ASP.NET Core
Cross-Site Request Forgery (CSRF): The attack
- [Instructor] The final attack that I would like to cover in this chapter is cross-site request forgery, or CSRF. Some people are using XSRF but if you ask me, they are wrong. No, I'm kidding. But CSRF is more common. Some people even pronounce it C-SRF which I also find a bit weird. There are different approaches how cross-site request forgery works, but here is a very common one. Let's just assume a client is authenticated against the web application, for instance, by using a cookie, and then the following happens. First of all, the client is sending an HTTP request to the attacker's server, because of following a link in a spam email, whatever. In the HTTP response, the attacker planted some HTML or some JavaScript that prompts the client browser to send a specific HTTP request somewhere else, the web server client is authenticated with. So, the attacked server here gets an HTTP request from the client that's authenticated, so that server considers the request as legit. But client…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
OWASP Top Ten2m 45s
-
(Locked)
Cross-site scripting (XSS): The attack4m 33s
-
(Locked)
Cross-site scripting (XSS): The defense3m 25s
-
(Locked)
Cross-site scripting (XSS) in JavaScript4m 40s
-
(Locked)
Cross-site scripting (XSS) in single-page applications3m 30s
-
(Locked)
Same-origin policy and CORS4m 26s
-
(Locked)
Enabling CORS in ASP.NET Core web API6m 23s
-
(Locked)
SQL injection with ADO.NET2m 25s
-
(Locked)
SQL injection with Entity Framework Core2m 34s
-
(Locked)
Fixing SQL injection5m 23s
-
(Locked)
Cross-Site Request Forgery (CSRF): The attack5m 25s
-
(Locked)
Cross-Site Request Forgery (CSRF): The defense7m 11s
-
-
-
-
-