JS: Port PostMessageStar

This commit is contained in:
Asger F
2023-10-05 09:21:37 +02:00
parent e1fae3d16d
commit 2400af4bc3
3 changed files with 43 additions and 35 deletions

View File

@@ -15,9 +15,9 @@
import javascript
import semmle.javascript.security.dataflow.PostMessageStarQuery
import DataFlow::PathGraph
import PostMessageStarFlow::PathGraph
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
from PostMessageStarFlow::PathNode source, PostMessageStarFlow::PathNode sink
where PostMessageStarFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "$@ is sent to another window without origin restriction.",
source.getNode(), "Sensitive data"