Find Android broadcasts sent without a receiver permission
ProprietaryFinds an Android Context sending a broadcast Intent that any installed application can receive: sendBroadcast and sendBroadcastAsUser without a receiver permission, sendOrderedBroadcast and sendOrderedBroadcastAsUser with a null one, and every sticky broadcast, which cannot be protected by a permission at all. A malicious application can read the data the Intent carries, and answer an ordered broadcast with a forged result (CWE-927). Pass a receiver permission, or use an explicit Intent. Test sources are not searched.
org. openrewrite. java. security. search. FindUnprotectedAndroidBroadcastmod run . --recipe= org. openrewrite. java. security. search. FindUnprotectedAndroidBroadcastInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.