dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
540 stars 361 forks source link

Specify permissions for context-registered broadcast receivers #433

Closed aksmet closed 3 years ago

aksmet commented 3 years ago

PR Type

What kind of change does this PR introduce?

PR Checklist

For bug fixes / features, please check if your PR fulfills the following requirements:

What is the purpose of this PR?

When this plugin is scanned by NowSecure, the following is reported:

Android apps can dynamically register broadcast receivers and specify permissions to restrict access to them. Broadcast receivers that are registered without specifying any permissions can potentially leak sensitive info to all other applications on the device. This test detects any context-registered broadcast receivers that have not been protected with permissions.

Link to relevant CWE: https://cwe.mitre.org/data/definitions/925.html

To remedy this, permissions have to be defined for the broadcast receivers registered by the Bluetooth, Location, and NFC components.

Does this PR introduce a breaking change?

What testing has been done on the changes in the PR?

What testing has been done on existing functionality?

Other information

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.