Introduce TaintInheritingContent

This commit is contained in:
Chris Smowton
2021-10-07 11:20:19 +01:00
parent 1afc03b9b5
commit 5da392ebfe

View File

@@ -75,6 +75,14 @@ class IntentGetParcelableExtraMethod extends Method {
}
}
/**
* Specifies that if an `Intent` is tainted, then so are its synthetic fields.
*/
private class IntentFieldsInheritTaint extends DataFlow::SyntheticFieldContent,
TaintInheritingContent {
IntentFieldsInheritTaint() { this.getField().matches("android.content.Intent.%") }
}
private class IntentBundleFlowSteps extends SummaryModelCsv {
override predicate row(string row) {
row =