Android Bad Practices: Sticky Broadcast

ABSTRACT

The program sends a sticky broadcast.

EXPLANATION

Sticky broadcasts cannot be secured with a permission and therefore are accessible to any receiver. If these broadcasts contain sensitive data or reach a malicious receiver, the application may be compromised.

Example 1: The following code sends a sticky broadcast.


...
context.sendStickyBroadcast(intent);
...

REFERENCES

[1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A2 Broken Access Control

[2] Standards Mapping - OWASP Top 10 2013 - (OWASP 2013) A5 Security Misconfiguration

[3] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A6 Security Misconfiguration

[4] Standards Mapping - FIPS200 - (FISMA) AC

[5] Standards Mapping - NIST Special Publication 800-53 Revision 4 - (NIST SP 800-53 Rev.4) AC-4 Information Flow Enforcement

[6] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3480.1 CAT I

[7] Standards Mapping - Security Technical Implementation Guide Version 3.5 - (STIG 3.5) APP3480.1 CAT I

[8] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3480.1 CAT II

[9] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 265

[10] Jesse Burns Developing Secure Mobile Applications for Android

[11] Standards Mapping - SANS Top 25 2009 - (SANS 2009) Improper Access Control - CWE ID 285

[12] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.10

[13] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 6.5.5

[14] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 6.5.6, Requirement 7.1.1

[15] Standards Mapping - Payment Card Industry Data Security Standard Version 3.0 - (PCI 3.0) Requirement 7.1.2

[16] William Enck, Machigar Ongtang, and Patrick McDaniel Understanding Android Security

[17] William Enck and Patrick McDaniel Understanding Android's Security Framework

[18] Using Permissions


Copyright 2014 Fortify Software - All rights reserved.
(Generated from version 2014.1.0.0010 of the Fortify Secure Coding Rulepacks)
desc.semantic.java.android_bad_practices_sticky_broadcast