mirror of
https://github.com/github/codeql.git
synced 2026-04-10 09:34:00 +02:00
29 lines
824 B
Plaintext
29 lines
824 B
Plaintext
import javascript
|
|
import semmle.javascript.security.dataflow.Xss
|
|
|
|
query predicate component_getAPropertyValue(Vue::Component c, string name, DataFlow::Node prop) {
|
|
c.getAPropertyValue(name) = prop
|
|
}
|
|
|
|
query predicate component_getOption(Vue::Component c, string name, DataFlow::Node prop) {
|
|
c.getOption(name) = prop
|
|
}
|
|
|
|
query predicate component(Vue::Component c) { any() }
|
|
|
|
query predicate instance_heapStep(
|
|
Vue::InstanceHeapStep step, DataFlow::Node pred, DataFlow::Node succ
|
|
) {
|
|
step.step(pred, succ)
|
|
}
|
|
|
|
query predicate templateElement(Vue::Template::Element template) { any() }
|
|
|
|
query predicate vhtmlSourceWrite(Vue::VHtmlSourceWrite w, DataFlow::Node pred, DataFlow::Node succ) {
|
|
w.step(pred, succ)
|
|
}
|
|
|
|
query predicate xssSink(DomBasedXss::Sink s) { any() }
|
|
|
|
query RemoteFlowSource remoteFlowSource() { any() }
|