Challenges
Search…
Insecure Implementation of SetResult in exported Activity
The com.insecureshop.ResultActivity is exported and contains the following code:
1
public void onCreate(Bundle savedInstanceState) {
2
super.onCreate(savedInstanceState);
3
setResult(-1, getIntent());
4
finish();
Copied!
The exported activity passes an Intent to the attacker via setResult(code, intent). Such configuration allows an attacker to access arbitrary content providers.

Going an extra mile

Can you read Phone contacts using this vulnerability?

Note: In order to read Phone contacts, you need to grant InsecureShop access to your contacts. You can enable this permission by long pressing the app icon and then going to App Info > Permissions. Here you need to enable the Contacts permission.

Reference:

Gaining access to arbitrary* Content Providers
News, Techniques & Guides
Two weeks of securing Samsung devices: Part 1
News, Techniques & Guides
Last modified 26d ago