JS: Port XpathInjection

This commit is contained in:
Asger F
2023-10-05 09:26:36 +02:00
parent 03f8c0fc5e
commit c2d170b4fd
3 changed files with 36 additions and 39 deletions

View File

@@ -13,9 +13,9 @@
import javascript
import semmle.javascript.security.dataflow.XpathInjectionQuery
import DataFlow::PathGraph
import XpathInjectionFlow::PathGraph
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
from XpathInjectionFlow::PathNode source, XpathInjectionFlow::PathNode sink
where XpathInjectionFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "XPath expression depends on a $@.", source.getNode(),
"user-provided value"