add XssThroughDom and CodeInjection to Queries.qll

This commit is contained in:
tombolton
2022-05-12 11:09:02 +01:00
parent 0c4dc1a143
commit 5f5e86c2b2

View File

@@ -5,10 +5,12 @@
*/
newtype TQuery =
TCodeInjectionQuery() or
TNosqlInjectionQuery() or
TSqlInjectionQuery() or
TTaintedPathQuery() or
TXssQuery()
TXssQuery() or
TXssThroughDomQuery()
abstract class Query extends TQuery {
abstract string getName();
@@ -16,6 +18,10 @@ abstract class Query extends TQuery {
string toString() { result = getName() }
}
class CodeInjectionQuery extends Query, TCodeInjectionQuery {
override string getName() { result = "CodeInjection" }
}
class NosqlInjectionQuery extends Query, TNosqlInjectionQuery {
override string getName() { result = "NosqlInjection" }
}
@@ -31,3 +37,7 @@ class TaintedPathQuery extends Query, TTaintedPathQuery {
class XssQuery extends Query, TXssQuery {
override string getName() { result = "Xss" }
}
class XssThroughDomQuery extends Query, TXssThroughDomQuery {
override string getName() { result = "XssThroughDom" }
}