Skip to content

Commit 976e484

Browse files
author
liangjinhuang
committed
style:move all source files under src/experimental & feat:modify source regular matching rules
1 parent 1885b68 commit 976e484

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/ql/src/experimental/Security/CWE-338/InsecureRandomness.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
*/
1414

1515
import python
16-
import semmle.python.security.dataflow.InsecureRandomness::InsecureRandomness
16+
import experimental.semmle.python.security.InsecureRandomness::InsecureRandomness
1717
import semmle.python.dataflow.new.DataFlow
1818
import DataFlow::PathGraph
1919

2020
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
2121
where cfg.hasFlowPath(source, sink)
2222
select sink.getNode(), source, sink, "Cryptographically insecure $@ in a security context.",
23-
source.getNode(), "random value"
23+
source.getNode(), "random value"

python/ql/lib/semmle/python/security/dataflow/InsecureRandomnessCustomizations.qll renamed to python/ql/src/experimental/semmle/python/security/InsecureRandomnessCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module InsecureRandomness {
5858
class RandomFnSink extends Sink {
5959
RandomFnSink() {
6060
exists(DataFlowCallable randomFn |
61-
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|make|mk|create).*(nonce|salt|pepper).*")
61+
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|make|mk|create).*(nonce|salt|pepper|Password).*")
6262
|
6363
this.getEnclosingCallable() = randomFn
6464
)

0 commit comments

Comments
 (0)