Skip to content

Commit 66b54f0

Browse files
committed
Rename test
1 parent d955dce commit 66b54f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/test/query-tests/security/CWE-330/WeakRandomCookies.java renamed to java/ql/test/query-tests/security/CWE-330/InsecureRandomCookies.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.apache.commons.lang3.RandomStringUtils;
1111
import org.owasp.esapi.Encoder;
1212

13-
public class WeakRandomCookies extends HttpServlet {
13+
public class InsecureRandomCookies extends HttpServlet {
1414
HttpServletResponse response;
1515

1616
public void doGet() {
@@ -44,8 +44,8 @@ public void doGet() {
4444
byte[] bytes2 = new byte[16];
4545
sr.nextBytes(bytes2);
4646
// GOOD: The cookie value is unpredictable.
47-
Cookie cookie4 = new Cookie("name", new String(bytes2));
48-
47+
Cookie cookie4 = new Cookie("name", new String(bytes2));
48+
4949
ThreadLocalRandom tlr = ThreadLocalRandom.current();
5050

5151
Cookie cookie5 = new Cookie("name", Integer.toString(tlr.nextInt())); // $hasWeakRandomFlow

0 commit comments

Comments
 (0)