JS: Port InsufficientPasswordHash

This commit is contained in:
Asger F
2023-10-05 09:21:25 +02:00
parent fd98b2546d
commit e1fae3d16d
3 changed files with 25 additions and 17 deletions

View File

@@ -12,9 +12,9 @@
import javascript
import semmle.javascript.security.dataflow.InsufficientPasswordHashQuery
import DataFlow::PathGraph
import InsufficientPasswordHashFlow::PathGraph
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
from InsufficientPasswordHashFlow::PathNode source, InsufficientPasswordHashFlow::PathNode sink
where InsufficientPasswordHashFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "Password from $@ is hashed insecurely.", source.getNode(),
source.getNode().(Source).describe()