Turning Your Computer Into a GPS Tracker With Apple Maps
Apple Maps logged the distance from a user-supplied coordinate to the user's current location to stderr, and a URL scheme allowed an attacker to trigger this calculation with arbitrary coordinates. By repeatedly querying distances and adjusting coordinates, an attacker could trilaterate the user's precise location without authorisation.
One of the things Apple cares about in terms of its bug bounty program is your location data. Apple rightly categorizes real-time or historical precise location data as "sensitive data" which in some cases qualifies for a significant monetary award.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application logged sensitive distance calculations to stderr and exposed a URL scheme that let any caller supply arbitrary coordinates, without restricting who could trigger the calculation or read the logs.
Impact
An attacker could extract the user's accurate location without authorization, though the exploit required the ability to run a script on the user's machine and read the Maps log output.
What the attacker needed
Local access to run a script; ability to read Maps stderr logs; Maps URL scheme accessible
The fix
Apple fixed the issue in macOS Monterey 12.6 and iOS 15.7/16, as indicated by the update advisory.
How it was found
- Open the Console application on macOS to view log messages from the Maps process.
- Click on different restaurants on the map and observe the distance value logged to stderr.
- Use the Maps URL scheme with the 'q' parameter to supply arbitrary coordinates and trigger the distance calculation.
- Run a script that approximates the user's location by IP and iteratively adjusts coordinates to reduce the distance.
- Extract the user's exact location through trilateration in about 200 seconds.
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 write-up has not been written yet. The Original tab links to the source.
Apple Maps, like a GPS, knows where you are. The app was writing the distance from a point you choose to your real location into a log file that other programs could read. By asking for many distances from different points, an attacker could work out exactly where you are, like finding a treasure by measuring distances from several landmarks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.