Merge pull request #6966 from atorralba/atorralba/android-explicit-intent-sanitizer

Android: Add ExplicitIntentSanitizer and allowIntentExtrasImplicitRead
This commit is contained in:
Anders Schack-Mulligen
2021-11-03 10:20:09 +01:00
committed by GitHub
3 changed files with 57 additions and 35 deletions

View File

@@ -48,11 +48,7 @@ class GetContentIntentConfig extends TaintTracking2::Configuration {
// Allow the wrapped intent created by Intent.getChooser to be consumed
// by at the sink:
isSink(node) and
(
content.(DataFlow::SyntheticFieldContent).getField() = "android.content.Intent.extras"
or
content instanceof DataFlow::MapValueContent
)
allowIntentExtrasImplicitRead(node, content)
}
}