Shared: add outdated Swift sink kinds

This commit is contained in:
Jami Cogswell 2023-06-05 09:21:32 -04:00
Родитель 62ac0dc471
Коммит 3f1dc8e5c7
7 изменённых файлов: 35 добавлений и 7 удалений

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {

Просмотреть файл

@ -47,7 +47,7 @@ class OutdatedSinkKind extends string {
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt", "ldap",
"pending-intent-sent", "intent-start", "set-hostname-verifier", "header-splitting", "xss",
"write-file", "create-file", "read-file", "open-url", "jdbc-url", "command-line-injection",
"code", "html", "remote"
"code", "html", "remote", "uncontrolled-format-string", "js-eval"
]
}
@ -55,6 +55,8 @@ class OutdatedSinkKind extends string {
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
result = this + "-injection"
or
this = "js-eval" and result = "code-injection"
or
this = "url-redirect" and result = "url-redirection"
or
this = "ssti" and result = "template-injection"
@ -78,6 +80,8 @@ class OutdatedSinkKind extends string {
this = ["open-url", "jdbc-url"] and result = "request-forgery"
or
this = "command-line-injection" and result = "command-injection"
or
this = "uncontrolled-format-string" and result = "format-string"
}
string outdatedMessage() {