VariantIncomplete

CWE-926Improper Export of Android Application Components

Category: other

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.

Common consequences· 3

  • Availability / Integrity — Unexpected State, DoS: Crash, Exit, or Restart, DoS: Instability, Varies by Context
    Other applications, possibly untrusted, can launch the Activity.
  • Availability / Integrity — Unexpected State, Gain Privileges or Assume Identity, DoS: Crash, Exit, or Restart, DoS: Instability, Varies by Context
    Other applications, possibly untrusted, can bind to the Service.
  • Confidentiality / Integrity — Read Application Data, Modify Application Data
    Other applications, possibly untrusted, can read or modify the data that is offered by the Content Provider.

Potential mitigations· 4

  • [Build and Compilation]If they do not need to be shared by other applications, explicitly mark components with android:exported="false" in the application manifest.
  • [Build and Compilation]If you only intend to use exported components between related apps under your control, use android:protectionLevel="signature" in the xml manifest to restrict access to applications signed by you.
  • [Build and Compilation, Architecture and Design]Limit Content Provider permissions (read/write) as appropriate.
  • [Build and Compilation, Architecture and Design]Limit Content Provider permissions (read/write) as appropriate.

References

  1. https://cwe.mitre.org/data/definitions/926.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Use of Implicit Intent for Sensitive Communication
CWE
Improper Verification of Intent by Broadcast Receiver
CWE
Exposed Dangerous Method or Function
CWE
Exposure of Sensitive Information to an Unauthorized Actor
CWE
Exposure of Sensitive Information Due to Incompatible Policies
CWE
Insufficient Encapsulation
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.