Skip to content

Fix Android 13+ crash and security exposure in DebugBroadcastReceiver#2

Open
mhdamirhamza wants to merge 1 commit into
mainfrom
mhdamirhamza-patch-2
Open

Fix Android 13+ crash and security exposure in DebugBroadcastReceiver#2
mhdamirhamza wants to merge 1 commit into
mainfrom
mhdamirhamza-patch-2

Conversation

@mhdamirhamza

Copy link
Copy Markdown
Owner

Fixes a critical security and stability issue in DebugBroadcastReceiver. On Android 13+ (API 33+) devices, dynamically registering a receiver without specifying export flags triggers a SecurityException and crashes downstream applications. Additionally, adding the RECEIVER_NOT_EXPORTED flag ensures that zero-permission malicious apps cannot broadcast implicit intents to this receiver to dump the internal RIB hierarchy tree.

Related issue(s):
None (Found via manual source code security audit).

Test plan:
Verified that the application registers the receiver successfully on Android 13+ devices without throwing a SecurityException and that local app communication is safely restricted.

Specifies RECEIVER_NOT_EXPORTED flag for API 33+ devices to prevent SecurityException crashes and block unauthorized local apps from accessing the RIB tree hierarchy dump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant