Skip to content

CWE-925: Improper Verification of Intent by Broadcast Receiver

Variant

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.

Consequences

  • Integrity: Gain Privileges or Assume Identity

How to prevent it

  • Architecture and Design: Before acting on the Intent, check the Intent Action to make sure it matches the expected System action.

Recent advisories

  • GHSA-qcfx-2mfw-w4cg — Rails Active Storage has possible content type bypass via metadata in direct uploads

All advisories for CWE-925

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor