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

Skip to content

Commit b5458b2

Browse files
committed
update js/insecure-randomness to match csharp
1 parent 9cdd8cc commit b5458b2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

javascript/ql/src/Security/CWE-338/InsecureRandomness.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ import DataFlow::PathGraph
1818

1919
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
2020
where cfg.hasFlowPath(source, sink)
21-
select sink.getNode(), source, sink, "Cryptographically insecure $@ in a security context.",
22-
source.getNode(), "random value"
21+
select sink.getNode(), source, sink,
22+
"Cryptographically insecure random number is generated at $@ and used here in a security context.",
23+
source.getNode(), source.getNode().toString()

0 commit comments

Comments
 (0)