Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insecure Random Number Generator #110

Open
zisanyavuz opened this issue Nov 6, 2024 · 0 comments
Open

Insecure Random Number Generator #110

zisanyavuz opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working KONDUKTO

Comments

@zisanyavuz
Copy link

A high severity vulnerability has been discovered in your project.

Project Name: test79

Scanner Name: codethreat

Cwe ID: 338

Cwe Name: Use of Cryptograhically Weak Pseudo-Random Number Generator (PRNG)

Cwe Link: https://cwe.mitre.org/data/definitions/338.html

File: nerginturgut-WebGoat1234-3bfcebc/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/PasswordResetLink.java

Line: 39

Code:

-34 -     if (args == null || args.length != 2) {
-35 -       System.out.println("Need a username and key");
-36 -       System.exit(1);
-37 -     }
-38 -     String username = args[0];
*39 -     String key = args[1];
-40 -     System.out.println("Generation password reset link for " + username);
-41 -     System.out.println(
-42 -         "Created password reset link: "
-43 -             + new PasswordResetLink().createPasswordReset(username, key));
-44 -   }
-45 - 

Custom Description: test

Kondukto Link: https://9a4f-104-155-30-65.ngrok-free.app/projects/6703db4e0fadccdc7e5dfc4c/vulns/appsec?page=1&perPage=15&id=in:670655e9643219475b69bc2f
Deeplink: There is no available deeplink

@zisanyavuz zisanyavuz added bug Something isn't working KONDUKTO labels Nov 6, 2024
@zisanyavuz zisanyavuz self-assigned this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working KONDUKTO
Projects
None yet
Development

No branches or pull requests

1 participant