We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3efb825 commit 677b404Copy full SHA for 677b404
…hon/lib/github/cryptography/WeakPRNG.qll …b/cryptography/RandomNumberGenerator.qllpython/lib/github/cryptography/WeakPRNG.qll renamed to python/lib/github/cryptography/RandomNumberGenerator.qll
@@ -4,8 +4,8 @@ private import semmle.python.dataflow.new.DataFlow
4
5
abstract class RandomNumberGeneratorSinks extends DataFlow::Node { }
6
7
-class OSRandom extends RandomNumberGeneratorSinks {
8
- OSRandom() {
+class OsRandom extends RandomNumberGeneratorSinks {
+ OsRandom() {
9
exists(DataFlow::Node call |
10
// https://docs.python.org/3/library/os.html#os.getrandom
11
call = API::moduleImport("os").getMember("getrandom").getACall() and
python/src/security/CWE-338/WeakPRNG.ql
@@ -12,7 +12,7 @@
12
*/
13
14
import python
15
-import github.crytography.WeakPRNG
+import github.cryptography.RandomNumberGenerator
16
17
from RandomNumberGeneratorSinks rngs
18
select rngs.asExpr(), "Using weak PRNG"
0 commit comments