Skip to content

Create test.go#31

Open
cklein12 wants to merge 1 commit intomainfrom
cklein12-patch-31
Open

Create test.go#31
cklein12 wants to merge 1 commit intomainfrom
cklein12-patch-31

Conversation

@cklein12
Copy link
Owner

@cklein12 cklein12 commented Aug 8, 2024

Thank you for submitting a pull request to the WebGoat!

Copy link

@jit-ci jit-ci bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Jit has detected 1 important finding in this PR that you should review.
The finding is detailed below as a comment.
It’s highly recommended that you fix this security issue before merge.

letters := []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
b := make([]byte, n)
for i := range b {
b[i] = letters[rand.Intn(len(letters))] //nolint: gosec // G404: Use of weak random number generator (math/rand instead of crypto/rand)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security control: Static Code Analysis Go

Type: Use Of Weak Random Number Generator (Math/Rand Instead Of Crypto/Rand)

Description: Use of weak random number generator (math/rand instead of crypto/rand)

Severity: HIGH

Learn more about this issue



Jit Bot commands and options (e.g., ignore issue)

You can trigger Jit actions by commenting on this PR review:

  • #jit_ignore_fp Ignore and mark this specific single instance of finding as “False Positive”
  • #jit_ignore_accept Ignore and mark this specific single instance of finding as “Accept Risk”
  • #jit_ignore_type_in_file Ignore any finding of type "Use of weak random number generator (math/rand instead of crypto/rand)" in test.go
  • #jit_undo_ignore Undo ignore command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant