CSRF - Double Submit Cookie
  Cross-site Request Forgery protection in web application     Double Submit Cookie    Send Random Value in both Cookie and request  Server Verify matching of Cookie Value and Requested Value         About Application        Java Based Web application which has simple hard coded login page  User login to the application with user name "asd" and pssword "123"         Login        Upon login, generate session identifier and set a cookie in the browser. At the same time, generate the CSRF token for the session and set a cookie in the browser. The CSRF token value is not stored in the server side.              Store as a Cookie     Generate Token    Generated Token Value      Cookie In Browser       The webpage that has a HTML form. The method is POST. When the HTML form is loaded, run a javascript which reads the CSRF token cookie value in the browser and add a hidden field to the HTML form modifying the DOM.         Script     When the form is submitted to the action,...