Add intent creation from a URI as a taint step

This commit is contained in:
Tony Torralba
2021-10-18 12:18:07 +02:00
parent d1d2d61d7e
commit 392e2eebeb
2 changed files with 15 additions and 0 deletions

View File

@@ -179,6 +179,18 @@ public class AndroidIntentRedirectionTest extends Activity {
// Conditionally tainted sinks aren't supported currently
startActivity(fwdIntent); // $ MISSING: $hasAndroidIntentRedirection
}
{
Intent fwdIntent = Intent.parseUri(getIntent().getStringExtra("uri"), 0);
startActivity(fwdIntent); // $ hasAndroidIntentRedirection
}
{
Intent fwdIntent = Intent.getIntent(getIntent().getStringExtra("uri"));
startActivity(fwdIntent); // $ hasAndroidIntentRedirection
}
{
Intent fwdIntent = Intent.getIntentOld(getIntent().getStringExtra("uri"));
startActivity(fwdIntent); // $ hasAndroidIntentRedirection
}
} catch (Exception e) {
}
}