mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Java: update intent-start sink kind to intent-redirection
This commit is contained in:
@@ -276,8 +276,8 @@ module ModelValidation {
|
||||
[
|
||||
"open-url", "jndi-injection", "ldap-injection", "sql-injection", "jdbc-url",
|
||||
"log-injection", "mvel-injection", "xpath-injection", "groovy-injection", "xss",
|
||||
"ognl-injection", "intent-start", "pending-intents", "url-redirection", "create-file",
|
||||
"read-file", "write-file", "set-hostname-verifier", "header-splitting",
|
||||
"ognl-injection", "intent-redirection", "pending-intents", "url-redirection",
|
||||
"create-file", "read-file", "write-file", "set-hostname-verifier", "header-splitting",
|
||||
"information-leak", "xslt-injection", "jexl-injection", "bean-validation",
|
||||
"template-injection", "fragment-injection", "command-injection"
|
||||
] and
|
||||
|
||||
@@ -30,7 +30,7 @@ class IntentRedirectionAdditionalTaintStep extends Unit {
|
||||
|
||||
/** Default sink for Intent redirection vulnerabilities. */
|
||||
private class DefaultIntentRedirectionSink extends IntentRedirectionSink {
|
||||
DefaultIntentRedirectionSink() { sinkNode(this, "intent-start") }
|
||||
DefaultIntentRedirectionSink() { sinkNode(this, "intent-redirection") }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -54,7 +54,8 @@ private class IntentCreationSource extends ImplicitPendingIntentSource {
|
||||
|
||||
private class SendPendingIntent extends ImplicitPendingIntentSink {
|
||||
SendPendingIntent() {
|
||||
sinkNode(this, "intent-start") and
|
||||
// intent redirection sinks are method calls that start Android components
|
||||
sinkNode(this, "intent-redirection") and
|
||||
// implicit intents can't be started as services since API 21
|
||||
not exists(MethodAccess ma, Method m |
|
||||
ma.getMethod() = m and
|
||||
|
||||
Reference in New Issue
Block a user