Mapbox Android SDK uses Broadcast Receiver instead of Local Broadcast Manager
The SDK used the system-wide Broadcast Receiver for location-service broadcasts instead of the Local Broadcast Manager, so broadcasts were not confined to the app's process; the text does not describe an attacker intercepting them.
- Triaged in 19 hours
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 3 months
Summary by the program
Security researcher @mishre reported that the Mapbox Android SDK was using the Broadcast Receiver for location services requests and recommended that the switch be made to use the Local Broadcast Manager. The Local Broadcast Manager offers more granular control of broadcast permissions, as well as performance enhancements.
As part of the Mapbox Android SDK 5.x milestone, we had identified this feature of the SDK for refactoring and improvement. @mishre’s research highlighted the performance and security benefits of this switch and their recommendations were implemented in the Mapbox Android SDK 4.2.1 update, released December 22, 2016 (see Release Notes).
We recommend that all Android SDK users update to v4.2.1 or later. Mapbox Android SDK v4.2.1 uses the Local Broadcast Manager instead of the Broadcast Receiver. This change limits broadcasts of location data to local objects within the application's process.
Thank you again @mishre. This was a well researched and high quality report.
For more information on these specific Android API calls please see: BroadcastReceiver and LocalBroadcastManager.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the SDK used the global Broadcast Receiver for location updates instead of the Local Broadcast Manager, so broadcasts were not restricted to the app's own process.
Impact
Location data broadcast by the SDK could potentially be observed by other apps on the device, though the text does not describe a demonstrated exploit.
The fix
The SDK was changed to use the Local Broadcast Manager instead of the Broadcast Receiver, and this was fixed in version 4.2.1.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Android apps can send messages called broadcasts that other apps may be able to listen to. The SDK sent location updates this way instead of keeping them inside the app. The fix keeps those messages inside the app only.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.