What is broadcast intent in android?
Abstraction: Variant Structure: Simple The Android application uses a Broadcast Receiver that receives an Intent but does not properly verify that the Intent came from an authorized source. Certain types of Intents, identified by action string, can only be broadcast by the operating system itself, not by third-party applications. However, when an application registers to receive these implicit system intents, it is also registered to receive any explicit intents. While a malicious application cannot send an implicit system intent, it can send an explicit intent to the target application, which may assume that any received intent is a valid implicit system intent and not an explicit intent from another application. This may lead to unintended behavior. NatureTypeIDNameChildOf Languages Class: Language-Independent (Undetermined Prevalence) Technologies Class: Mobile (Undetermined Prevalence) Technical Impact: Gain Privileges or Assume Identity Another application can impersonate the operating system and cause the software to perform an unintended action. Example 1 The following example demonstrates the weakness. ... ... The ShutdownReceiver class will handle the intent: ... IntentFilter filter = new IntentFilter(Intent.ACTION_SHUTDOWN); BroadcastReceiver sReceiver = new ShutDownReceiver(); registerReceiver(sReceiver, filter); ... public class ShutdownReceiver extends BroadcastReceiver { @Override }public void onReceive(final Context context, final Intent intent) { mainActivity.saveLocalData(); Because the method does not confirm that the intent action is the expected system intent, any received intent will trigger the shutdown procedure, as shown here: window.location = examplescheme://method?parameter=value An attacker can use this behavior to cause a denial of service. Phase: Architecture and Design Before acting on the Intent, check the Intent Action to make sure it matches the expected System action. Maintenance This entry will be made more comprehensive in later CWE versions. More information is available Please select a different filter. |