mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Update Spife test
This commit is contained in:
@@ -63,9 +63,7 @@ query predicate passingPositiveTests(string res, string expectation, InlineTest
|
||||
exists(ReflectedXss::Sink n | t.inNode(n))
|
||||
or
|
||||
expectation = "xss" and
|
||||
exists(XssConfig::Configuration cfg, DataFlow::Node sink |
|
||||
cfg.hasFlow(_, sink) and t.inNode(sink)
|
||||
)
|
||||
exists(DataFlow::Node sink | XssConfig::ReflectedXssFlow::flowTo(sink) and t.inNode(sink))
|
||||
or
|
||||
expectation = "cleartextStorageSink" and
|
||||
exists(CleartextStorage::Sink n | t.inNode(n))
|
||||
@@ -119,9 +117,7 @@ query predicate failingPositiveTests(string res, string expectation, InlineTest
|
||||
not exists(ReflectedXss::Sink n | t.inNode(n))
|
||||
or
|
||||
expectation = "xss" and
|
||||
not exists(XssConfig::Configuration cfg, DataFlow::Node sink |
|
||||
cfg.hasFlow(_, sink) and t.inNode(sink)
|
||||
)
|
||||
not exists(DataFlow::Node sink | XssConfig::ReflectedXssFlow::flowTo(sink) and t.inNode(sink))
|
||||
or
|
||||
expectation = "cleartextStorageSink" and
|
||||
not exists(CleartextStorage::Sink n | t.inNode(n))
|
||||
@@ -175,9 +171,7 @@ query predicate passingNegativeTests(string res, string expectation, InlineTest
|
||||
not exists(ReflectedXss::Sink n | t.inNode(n))
|
||||
or
|
||||
expectation = "!xss" and
|
||||
not exists(XssConfig::Configuration cfg, DataFlow::Node sink |
|
||||
cfg.hasFlow(_, sink) and t.inNode(sink)
|
||||
)
|
||||
not exists(DataFlow::Node sink | XssConfig::ReflectedXssFlow::flowTo(sink) and t.inNode(sink))
|
||||
or
|
||||
expectation = "!cleartextStorageSink" and
|
||||
not exists(CleartextStorage::Sink n | t.inNode(n))
|
||||
@@ -231,9 +225,7 @@ query predicate failingNegativeTests(string res, string expectation, InlineTest
|
||||
exists(ReflectedXss::Sink n | t.inNode(n))
|
||||
or
|
||||
expectation = "!xss" and
|
||||
exists(XssConfig::Configuration cfg, DataFlow::Node sink |
|
||||
cfg.hasFlow(_, sink) and t.inNode(sink)
|
||||
)
|
||||
exists(DataFlow::Node sink | XssConfig::ReflectedXssFlow::flowTo(sink) and t.inNode(sink))
|
||||
or
|
||||
expectation = "!cleartextStorageSink" and
|
||||
exists(CleartextStorage::Sink n | t.inNode(n))
|
||||
|
||||
Reference in New Issue
Block a user