Find Android broadcast receivers registered without a broadcaster permission
ProprietaryFinds a BroadcastReceiver registered with Context#registerReceiver without a broadcaster permission, or with a null one, so that any installed application can send it an Intent (CWE-925, CWE-926). The receiver should check what it is sent, or the registration should pass a permission the sender must hold. A receiver registered with RECEIVER_NOT_EXPORTED only receives broadcasts from its own application, and is not marked. Test sources are not searched.
org. openrewrite. java. security. search. FindUnprotectedAndroidReceivermod run . --recipe= org. openrewrite. java. security. search. FindUnprotectedAndroidReceiverInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.