November 2017
Intermediate to advanced
542 pages
14h 24m
English
One issue is that the expected CSRF token is stored in the HttpSession method, so as soon as the HttpSession method expires, your configured AccessDeniedHandler handler will receive InvalidCsrfTokenException. If you are using the default AccessDeniedHandler handler, the browser will get an HTTP 403 and display a poor error message.
You might ask why the expected CsrfToken token isn't stored in a cookie. This is because there are known exploits in which headers (specifying the cookies) can be set by another domain.
The Web Application Security ...
Read now
Unlock full access