mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
add tests
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
edges
|
||||
nodes
|
||||
| InsecureRandomness.py:5:12:5:26 | ControlFlowNode for Attribute() | semmle.label | ControlFlowNode for Attribute() |
|
||||
subpaths
|
||||
#select
|
||||
| InsecureRandomness.py:5:12:5:26 | ControlFlowNode for Attribute() | InsecureRandomness.py:5:12:5:26 | ControlFlowNode for Attribute() | InsecureRandomness.py:5:12:5:26 | ControlFlowNode for Attribute() | Cryptographically insecure $@ in a security context. | InsecureRandomness.py:5:12:5:26 | ControlFlowNode for Attribute() | random value |
|
||||
@@ -0,0 +1,5 @@
|
||||
import random
|
||||
|
||||
def generatePassword():
|
||||
# BAD: the random is not cryptographically secure
|
||||
return random.random()
|
||||
@@ -0,0 +1 @@
|
||||
experimental/Security/CWE-338/InsecureRandomness.ql
|
||||
Reference in New Issue
Block a user