JS: Port TaintedFormatString

This commit is contained in:
Asger F
2023-10-05 09:23:36 +02:00
parent 63343b1ba4
commit 51624c02a2
3 changed files with 42 additions and 85 deletions

View File

@@ -12,9 +12,9 @@
import javascript
import semmle.javascript.security.dataflow.TaintedFormatStringQuery
import DataFlow::PathGraph
import TaintedFormatStringFlow::PathGraph
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
from TaintedFormatStringFlow::PathNode source, TaintedFormatStringFlow::PathNode sink
where TaintedFormatStringFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "Format string depends on a $@.", source.getNode(),
"user-provided value"