Use_of_Cryptographically_Weak_PRNG issue exists @ vulnerable/sql.go in branch master
Method PrepareSQLDB at line 52 of vulnerable\sql.go uses a weak method Intn to produce random values. These values are then used as cryptographic variables by PrepareSQLDB at line 52 in vulnerable\sql.go.Similarity ID: 714613816
Use_of_Cryptographically_Weak_PRNG issue exists @ vulnerable/sql.go in branch master
Method PrepareSQLDB at line 52 of vulnerable\sql.go uses a weak method Intn to produce random values. These values are then used as cryptographic variables by PrepareSQLDB at line 52 in vulnerable\sql.go.Similarity ID: 714613816
Severity: Medium
CWE:338
Vulnerability details and guidance
Internal Guidance
Checkmarx
Training Recommended Fix
Lines: 52
Code (Line #52):