mirror of
https://github.com/github/codeql.git
synced 2026-05-21 14:47:10 +02:00
add XssThroughDom and CodeInjection to Queries.qll
This commit is contained in:
@@ -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" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user