Skip to content
Info disclosure Write-up Intermediate

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.

Ron Masas Follow

Published on breakpoint.sh

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.

Ron Masas (@RonMasas), on breakpoint.sh

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

  1. Open the Console application on macOS to view log messages from the Maps process.
  2. Click on different restaurants on the map and observe the distance value logged to stderr.
  3. Use the Maps URL scheme with the 'q' parameter to supply arbitrary coordinates and trigger the distance calculation.
  4. Run a script that approximates the user's location by IP and iteratively adjusts coordinates to reduce the distance.
  5. 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.

More by Ron Masas

View all

5 more disclosed reports, best first.

More from Apple

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.