Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1102f60 commit 77b5f42Copy full SHA for 77b5f42
1 file changed
python/ql/lib/semmle/python/security/dataflow/InsecureRandomnessCustomizations.qll
@@ -55,14 +55,14 @@ module InsecureRandomness {
55
}
56
57
/**
58
- * A use in a function that heuristically deals with passwords.
+ * A use in a function that heuristically deals with unsafe random numbers or random strings.
59
*/
60
- class PasswordFnSink extends Sink {
61
- PasswordFnSink() {
62
- exists(DataFlowCallable passwordFn |
63
- passwordFn.getName().regexpMatch("(?i).*(gen(erate)?|salt|make|mk)Password.*")
+ class RandomFnSink extends Sink {
+ RandomFnSink() {
+ exists(DataFlowCallable randomFn |
+ randomFn.getName().regexpMatch("(?i).*(gen(erate)?|salt|make|mk).*")
64
|
65
- this.getEnclosingCallable() = passwordFn
+ this.getEnclosingCallable() = randomFn
66
)
67
68
0 commit comments