Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77b5f42

Browse files
author
liangjinhuang
committed
change PasswordFnSink to RandomFnSink
1 parent 1102f60 commit 77b5f42

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python/ql/lib/semmle/python/security/dataflow/InsecureRandomnessCustomizations.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ module InsecureRandomness {
5555
}
5656

5757
/**
58-
* A use in a function that heuristically deals with passwords.
58+
* A use in a function that heuristically deals with unsafe random numbers or random strings.
5959
*/
60-
class PasswordFnSink extends Sink {
61-
PasswordFnSink() {
62-
exists(DataFlowCallable passwordFn |
63-
passwordFn.getName().regexpMatch("(?i).*(gen(erate)?|salt|make|mk)Password.*")
60+
class RandomFnSink extends Sink {
61+
RandomFnSink() {
62+
exists(DataFlowCallable randomFn |
63+
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|salt|make|mk).*")
6464
|
65-
this.getEnclosingCallable() = passwordFn
65+
this.getEnclosingCallable() = randomFn
6666
)
6767
}
6868
}

0 commit comments

Comments
 (0)