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] Using Permissions

[2] Jesse Burns Developing Secure Mobile Applications for Android

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

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

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

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

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

[8] Standards Mapping - OWASP Mobile Top 10 Risks 2014 - (OWASP Mobile 2014) M5 Poor Authorization and Authentication

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

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

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

[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 1.2 - (PCI 1.2) Requirement 6.5.6, Requirement 7.1.1

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

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

[16] Standards Mapping - SANS Top 25 2009 - (SANS 2009) Porous Defenses - CWE ID 285

[17] Standards Mapping - SANS Top 25 2010 - (SANS 2010) Porous Defenses - CWE ID 285

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

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

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

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

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

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

[24] Standards Mapping - Web Application Security Consortium Version 2.00 - (WASC 2.00) Insufficient Authorization (WASC-02)


© Copyright 2008 - 2015 Hewlett-Packard Development Company, L.P.
(Generated from version 2015.2.0.0008 of the Fortify Secure Coding Rulepacks)
desc.semantic.java.android_bad_practices_sticky_broadcast