mirror of
https://github.com/github/codeql.git
synced 2026-03-05 23:26:51 +01:00
Java: update sql sink kind to sql-injection
This commit is contained in:
@@ -274,11 +274,11 @@ module ModelValidation {
|
||||
exists(string kind | sinkModel(_, _, _, _, _, _, _, kind, _) |
|
||||
not kind =
|
||||
[
|
||||
"open-url", "jndi-injection", "ldap", "sql", "jdbc-url", "logging", "mvel", "xpath",
|
||||
"groovy", "xss", "ognl-injection", "intent-start", "pending-intent-sent", "url-redirect",
|
||||
"create-file", "read-file", "write-file", "set-hostname-verifier", "header-splitting",
|
||||
"information-leak", "xslt", "jexl", "bean-validation", "ssti", "fragment-injection",
|
||||
"command-injection"
|
||||
"open-url", "jndi-injection", "ldap", "sql-injection", "jdbc-url", "logging", "mvel",
|
||||
"xpath", "groovy", "xss", "ognl-injection", "intent-start", "pending-intent-sent",
|
||||
"url-redirect", "create-file", "read-file", "write-file", "set-hostname-verifier",
|
||||
"header-splitting", "information-leak", "xslt", "jexl", "bean-validation", "ssti",
|
||||
"fragment-injection", "command-injection"
|
||||
] and
|
||||
not kind.matches("regex-use%") and
|
||||
not kind.matches("qltest%") and
|
||||
|
||||
@@ -25,7 +25,7 @@ class AdditionalQueryInjectionTaintStep extends Unit {
|
||||
|
||||
/** A sink for SQL injection vulnerabilities. */
|
||||
private class SqlInjectionSink extends QueryInjectionSink {
|
||||
SqlInjectionSink() { sinkNode(this, "sql") }
|
||||
SqlInjectionSink() { sinkNode(this, "sql-injection") }
|
||||
}
|
||||
|
||||
/** A sink for Java Persistence Query Language injection vulnerabilities. */
|
||||
|
||||
Reference in New Issue
Block a user