1833
registerReceiver(sReceiver, filter);
...
public class ShutdownReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent intent) {
mainActivity.saveLocalData();
mainActivity.stopActivity();
}
}
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:
Example Language: Java (Attack)
window.location = examplescheme://method?parameter=value
An attacker can use this behavior to cause a denial of service.
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 1396 Comprehensive Categorization: Access Control 1400 2519
Notes
Maintenance
This entry will be made more comprehensive in later CWE versions.
Related Attack Patterns
CAPEC-ID Attack Pattern Name
499 Android Intent Intercept
References
[REF-922]Erika Chin, Adrienne Porter Felt, Kate Greenwood and David Wagner. "Analyzing Inter-
Application Communication in Android". < http://www.eecs.berkeley.edu/~daw/papers/intentsmobisys11.
pdf >.
CWE-926: Improper Export of Android Application Components
Weakness ID : 926
Structure : Simple
Abstraction : Variant
Description
The Android application exports a component for use by other applications, but does not properly
restrict which applications can launch the component or access the data it contains.
Extended Description
The attacks and consequences of improperly exporting a component may depend on the exported
component:
• If access to an exported Activity is not restricted, any application will be able to launch the
activity. This may allow a malicious application to gain access to sensitive information, modify
CWE Version 4.14
CWE-926: Improper Export of Android Application Components
CWE-926: Improper Export of Android Application Components