git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@962865
13f79535-47bb-0310-9956-
ffa450edef68
package org.apache.catalina.filters;
import java.io.IOException;
+import java.security.SecureRandom;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
private static final Log log =
LogFactory.getLog(CsrfPreventionFilter.class);
- private final Random randomSource = new Random();
+ private final Random randomSource = new SecureRandom();
private final Set<String> entryPoints = new HashSet<String>();
Include session ID in error message logged when trying to set an
attribute on an invalid session. (markt)
</add>
+ <fix>
+ Improve the CSRF protection filter by using SecureRandom rather than
+ Random to generate nonces. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">