How to prevent cross-site request forgery (csrf) attacks in asp.net mvc website with example. Cross Site Request Forgery is a security attack in asp.net mvc which is used to steal information by sending a request to a vulnerable site.