mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
/*
|
|
* For internal use only.
|
|
*
|
|
* Represents the security queries for which we currently have ML-powered versions.
|
|
*/
|
|
|
|
newtype TQuery =
|
|
TNosqlInjectionQuery() or
|
|
TSqlInjectionQuery() or
|
|
TTaintedPathQuery() or
|
|
TXssQuery() or
|
|
TXssThroughDomQuery() or
|
|
TShellCommandInjectionFromEnvironmentQuery()
|
|
|
|
abstract class Query extends TQuery {
|
|
abstract string getName();
|
|
|
|
string toString() { result = this.getName() }
|
|
}
|
|
|
|
class NosqlInjectionQuery extends Query, TNosqlInjectionQuery {
|
|
override string getName() { result = "NosqlInjection" }
|
|
}
|
|
|
|
class SqlInjectionQuery extends Query, TSqlInjectionQuery {
|
|
override string getName() { result = "SqlInjection" }
|
|
}
|
|
|
|
class TaintedPathQuery extends Query, TTaintedPathQuery {
|
|
override string getName() { result = "TaintedPath" }
|
|
}
|
|
|
|
class XssQuery extends Query, TXssQuery {
|
|
override string getName() { result = "Xss" }
|
|
}
|
|
|
|
class XssThroughDomQuery extends Query, TXssThroughDomQuery {
|
|
override string getName() { result = "XssThroughDom" }
|
|
}
|
|
|
|
class ShellCommandInjectionFromEnvironmentQuery extends Query,
|
|
TShellCommandInjectionFromEnvironmentQuery
|
|
{
|
|
override string getName() { result = "ShellCommandInjectionFromEnvironment" }
|
|
}
|