Skip to content

Commit 5da392e

Browse files
committed
Introduce TaintInheritingContent
1 parent 1afc03b commit 5da392e

File tree

1 file changed

+8
-0
lines changed
  • java/ql/lib/semmle/code/java/frameworks/android

1 file changed

+8
-0
lines changed

java/ql/lib/semmle/code/java/frameworks/android/Intent.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ class IntentGetParcelableExtraMethod extends Method {
7575
}
7676
}
7777

78+
/**
79+
* Specifies that if an `Intent` is tainted, then so are its synthetic fields.
80+
*/
81+
private class IntentFieldsInheritTaint extends DataFlow::SyntheticFieldContent,
82+
TaintInheritingContent {
83+
IntentFieldsInheritTaint() { this.getField().matches("android.content.Intent.%") }
84+
}
85+
7886
private class IntentBundleFlowSteps extends SummaryModelCsv {
7987
override predicate row(string row) {
8088
row =

0 commit comments

Comments
 (0)