Skip to content

Commit 4678302

Browse files
Update query metadata
Co-authored-by: Tony Torralba <[email protected]>
1 parent bbf9937 commit 4678302

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

java/ql/src/Security/CWE/CWE-330/WeakRandomness.ql

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/**
2-
* @name Weak Randomness
3-
* @description Using a weak source of randomness may allow an attacker to predict the generated values.
2+
* @name Insecure randomness
3+
* @description Using a cryptographically weak pseudo-random number generator to generate a
4+
* security-sensitive value may allow an attacker to predict what value will
5+
* be generated.
46
* @kind path-problem
5-
* @problem.severity error
6-
* @security-severity 8.6
7+
* @problem.severity warning
8+
* @security-severity 7.8
79
* @precision high
8-
* @id java/weak-randomness
10+
* @id java/insecure-randomness
911
* @tags security
1012
* external/cwe/cwe-330
1113
* external/cwe/cwe-338
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
category: newQuery
33
---
4-
* Added the `java/weak-randomness` query to detect uses of weakly random values which an attacker may be able to predict. Also added the `crypto-parameter` sink kind for sinks which represent the parameters and keys of cryptographic operations.
4+
* Added the `java/insecure-randomness` query to detect uses of weakly random values which an attacker may be able to predict. Also added the `crypto-parameter` sink kind for sinks which represent the parameters and keys of cryptographic operations.
55

0 commit comments

Comments
 (0)