Read PDF

Use Broadcasts Carefully


If no permission is set when sending a broadcast Intent, then any unprivileged app can receive the Intent unless it has an explicit destination.

An attacker could take advantage of an Intent that doesn't have any set permissions in the following way:

  • Create a malicious app that includes a component with the same name as a legitimate component
  • As long as that name (or namespace) is not already in use, the malicious app will install on the target device
  • Extract sensitive data from the broadcast Intent sent to that component name"?


Use permissions to protect Intents in your application. Keep in mind that when sending information via a broadcast Intent to a third party component, that component could have been replaced by a malicious install.



results matching ""

    No results matching ""