ValidateAntiForgeryToken: Purpose and Usage

In simple explanation found on Microsoft docs: ValidateAntiForgeryToken represents an attribute that is used to prevent forgery of a request. In other terms this attribute is used to prevent cross-site forgery attacks. Cross site forgery is an attack that posts to your site/form to attempt to submit a hiddent content using an authenticated user’s credential. Let’s have a realistic scenario of this cross site forgery. Supposed you are logged in to your online banking account....

September 17, 2013 · 2 min · Jommel Colcol