esapi-java-legacy
esapi-java-legacy copied to clipboard
AntiCSRF Tokens - JSP Tags
From [email protected] on October 30, 2010 22:03:27
This is a set of Java files and a TLD for generating secure random numbers for Anti-CSRF JSP Tags.
Attachment: AntiCSRFTokenTag.java AntiCSRFTokenTagCheck.java CSRFTokenException.java CSRFTokenUtil.java anti_csrf.tld
Original issue: http://code.google.com/p/owasp-esapi-java/issues/detail?id=162
From [email protected] on July 06, 2011 13:10:39
how will the jsp calling the above tools be like. I am a little confused with when should i set the csrf token in the request paremeter. Should that be onsubmit?
From [email protected] on June 06, 2013 23:10:36
Hi,
As per the above mentioned mechanism, we are adding a secret token as a hidden field in JSP and hence it's passed in the request.
As we are passing is it in a jsp as a hidden field the attacker would be able to find the value of the secret token and could add the same in his malicious request also. On such a scenario, we would not be able to differentiate the malicious and intended request rite?
Apologies if my understanding is wrong! and requesting you to explain briefly in i have understood wrongly.
Thanks!