Double Submit Cookies Pattern
CSRF PROTECTION: DOUBLE SUBMIT COOKIES PATTERN Cross-Site Request Forgery (CSRF) is an attack that enables or forces an user access unwanted websites of web application by accessing unwanted actions, which there users may be authenticated. CSRF attack takes place specially on t arget state-changing requests, such as transferring funds, changing their email address etc. Here the attacker may force or trick the user into executing actions of the attacker's choosing of web application. PREVENTION OF CSRF To prevent these kind of attacks, there are most notably two specification of famous techniques, such as Synchronizer Token Pattern Double Submit Cookies Pattern But in this post we are only going to look about Double Submit Cookies Pattern and the way of prevention. DOUBLE SUBMIT COOKIES PATTERN As regards with synchronizer token pattern, it stores the generated CSRF token value in the server-side and uses that to validate and check if the CSRF token...