Skip to content
Info disclosure Write-up Intermediate

How I Tracked Your Mother: Tracking Waze drivers using UI elements

The Waze API returned persistent user IDs and usernames for drivers who acknowledged road obstacles, allowing an attacker to track users' locations over time and potentially identify them by name.

Peter Gasper Follow

Published on malgregator.com

Bounty$1,337 View original

I am a daily user of the Waze traffic navigation as it provides me with the vision of the near future when I am driving. It’s especially useful when you are driving a little bit faster and are afraid of fine.

Peter Gasper, on malgregator.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Waze is a traffic navigation product, and the researcher is a daily user of it. The feature at the centre of this write-up is the live map: Waze shows random icons of other drivers who are nearby, and the same map is reachable from any web browser at waze.com/livemap. The question the researcher asked was simple: who are those people behind the icons, and can they be tracked?

From the original on malgregator.com

Setup

No account, role or special privilege is described. The researcher used a normal web browser against the public live map and then built a Chromium extension leveraging the chrome.devtools component to capture JSON responses from the Waze API. The extension was used to visualise how users broadly travelled between city districts or even between cities themselves.

Finding it

The researcher inspected how the driver icons on the live map are implemented. The Waze API can be asked for data on a location by sending latitude and longitude coordinates. Besides the essential traffic information, the response also contains coordinates of other drivers who are nearby.

What caught the researcher's eye was that the identification numbers (IDs) associated with the icons did not change over time. To confirm this, the researcher tracked one driver, and after some time she really appeared in a different place on the same road.

Exploitation

Step 1: Capture location data per ID

With the Chromium extension in place, the researcher captured JSON responses from the API and paired crawled location data with a unique ID. The visualisation showed how users broadly travelled between city districts or even cities themselves.

Real time tracking of a driver
Real time tracking of a driver From the original on malgregator.com

Example data captured for a given user over time:

Text
"user-8<REDACTED>0": {
  "2019-12-15 [redacted]": {
    "x": 17.1345,
    "y": 48.1315
  },
  "2019-12-15 [redacted]": {
    "x": 17.1685,
    "y": 48.142
  },
  ...
},

Each entry maps a timestamp to an x/y coordinate pair, so a single stable ID accumulates a movement history over time.

Step 2: Find your own ID

Once location data could be paired with a unique ID, the researcher knew there must be a way to identify who is behind the icon. The starting point was the research paper Unique in the Crowd: The privacy bounds of human mobility, which states that "four spatio-temporal points are enough to uniquely identify 95% of the individuals."

Using just the Waze map, the researcher found their own ID in a low-density area by monitoring their own location. With enough time, an attacker would find out the victim's ID by stalking the victim's known location. This does not scale for many accounts, so the researcher continued analysing the Waze API for some kind of oraculum that would translate an ID to a username or vice versa.

Step 3: The username leak on acknowledgements

The researcher found that if a user acknowledges any road obstacle or reports a police patrol, the user ID together with the username is returned by the Waze API to any Wazer driving through the place. The application usually does not show this data unless there is an explicit comment created by the user, but the API response contains the username, the ID, the location of an event and even the time when it was acknowledged.

A script was created that parsed the JSON data and dumped it into human readable form:

Text
# example output of a script posted below:
    "Martin<REDACTED>": {
        "1569048403000": {
            "x": 17.140624523162845,
            "y": 48.144849615796936
        }
    },
    "Matej<REDACTED>": {
        "1569392866000": {
            "x": 17.140624523162845,
            "y": 48.144849615796936
        }
    },
    "Michael<REDACTED>": {
        "1569875132000": {
            "x": 17.140624523162845,
            "y": 48.144849615796936
        }

Here the keys are usernames, each holding a timestamp keyed to an x/y coordinate pair. Many users actually use their legitimate names as a username.

Step 4: Build the dictionary and correlate

To leverage this leak, an attacker can pick multiple locations with high traffic and an existing short or long running notification on the obstacle. The attacker periodically calls the API and crawls the users that confirmed the existence of an obstacle. Over time, a determined attacker can build a dictionary of user names and their IDs. In parallel, the attacker can store all the icon locations and correlate them with the users.

Root cause

The design returns a stable identification number with each driver icon, and that ID does not change over time, so location samples can be accumulated against a single subject. Separately, the API returns the username together with the user ID to any Wazer driving through a place where an obstacle or police patrol was acknowledged, even though the application does not normally display that data unless the user created an explicit comment. An attacker can use the two together to build a dictionary of usernames and IDs and correlate stored icon locations with those users. The report does not describe the server-side code, so the exact implementation mistake is not stated.

Impact

An attacker can track random drivers over time and, in many cases, identify who is behind the icon. Identification of a specific victim's ID is possible by stalking the victim's known location, but this does not scale for many accounts. The username leak scales better: by crawling acknowledgements at high-traffic locations with existing notifications, an attacker can build a dictionary of usernames and IDs and correlate stored icon locations with those users. Many users use their legitimate names as a username, which makes the identification direct.

Fix

The remediation given for the username leak is to show only names of people who made comments or other social activity and are not expecting privacy.

Advisory timeline:

Date Event
15.12.2019 bug reported
17.12.2019 report was triaged
19.12.2019 accepted as a valid bug
8.1.2020 Vulnerability Reward Program panel decided to issue a reward of $1337
24.1.2020 bug bounty paid

Variants to test

  1. Stable identifiers in map or presence APIs. Request the same map area twice with a delay and compare the IDs attached to moving objects. A positive result is an ID that persists across requests while the object's coordinates change.
  2. Acknowledgement and report endpoints. Acknowledge an obstacle or report a police patrol, then request the same area from a second session. A positive result is a response containing the username, user ID, event location and acknowledgement time to a client that did not create the event.
  3. Username in responses not shown in the UI. Compare what the client renders with the raw JSON for the same view. A positive result is personal data present in the response but absent from the interface.
  4. Correlation of public activity with location history. Collect usernames from public comments or social activity and match them against stored location samples. A positive result is a username that maps consistently to one stable ID and its movement history.
  5. Low-density areas for self-identification. Monitor your own location in a sparse area and look for the ID that follows you. A positive result is a single ID whose coordinates track your own movements.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Waze is a navigation app that helps drivers avoid traffic. One of its features is a live map, which you can open in any web browser at waze.com/livemap. On that map you see little icons of other drivers who are near you. The researcher, a daily Waze user and a security engineer, asked a simple question: who are those people behind the icons, and can they be followed around?

The answer turned out to be yes. Each icon came with an identification number (an ID) that stayed the same over time. So the same icon could be watched as it moved from place to place. On top of that, the Waze service that feeds the map sometimes handed out the username together with that ID. Many people use their real name as their username. Put the two together and an attacker can build a dictionary of usernames and IDs and correlate stored icon locations with those users.

The report was accepted as a valid bug, and a reward of $1337 was paid. The timeline at the end of this article shows the dates.

From the original on malgregator.com

The product and the feature

Waze is a traffic navigation product. The researcher uses it every day because it shows what traffic will look like a little ahead, which is handy when you are driving a bit faster and are worried about a fine.

As part of its interface, Waze shows random icons of other drivers who are nearby. That always interested the researcher as a security engineer: maybe there is a way to find out who those people are?

Setting things up

The researcher did not need any special account or permission. A normal web browser pointed at the public live map was enough. To study the data the map receives, the researcher built a Chromium extension. Chromium is the open-source browser project that Google Chrome and several other browsers are built on, and an extension is a small add-on you install into the browser to change or observe what it does. This particular extension used the chrome.devtools component, a part of the browser aimed at developers that lets a program look at the traffic between the page and the server.

With that extension the researcher could capture the JSON responses coming back from the Waze API. JSON is a text format for structured data, a bit like a very strict shopping list where every item has a label; it is the usual way web pages exchange data with servers. An API (Application Programming Interface) is the set of addresses and rules a service offers so that other software can ask it questions and get answers. Think of it as the service counter of a shop: you hand over a request, you get back a response, and you are not allowed to walk into the stockroom yourself.

The extension was used to visualise how users broadly travelled between city districts or even between cities themselves.

Finding it

The researcher inspected how the driver icons on the live map are implemented. The Waze API can be asked for data on a location by sending latitude and longitude coordinates. Latitude and longitude are the two numbers that pin a point on the Earth: how far north or south, and how far east or west. Besides the essential traffic information, the response also contains coordinates of other drivers who are nearby.

What caught the researcher's eye was that the identification numbers (IDs) associated with the icons did not change over time. An ID is just a label the service attaches to something so it can refer to it again later; the important part here is that it was stable, meaning the same label kept pointing at the same driver. To confirm this, the researcher tracked one driver, and after some time she really appeared in a different place on the same road.

Step 1: Capture location data per ID

With the Chromium extension in place, the researcher captured JSON responses from the API and paired crawled location data with a unique ID. Crawling here means repeatedly asking for the same kind of data and collecting the answers, the way you might check a shop window every hour to see what changes. The visualisation showed how users broadly travelled between city districts or even cities themselves.

Real time tracking of a driver
Real time tracking of a driver From the original on malgregator.com

The image shows how users broadly travelled between city districts or even cities themselves.

Example data captured for a given user over time:

Text
"user-8<REDACTED>0": {
  "2019-12-15 [redacted]": {
    "x": 17.1345,
    "y": 48.1315
  },
  "2019-12-15 [redacted]": {
    "x": 17.1685,
    "y": 48.142
  },
  ...
},

Line by line:

  • "user-8<REDACTED>0" is the key for one driver. It is the stable ID, the label that kept pointing at the same person.
  • The { after it opens a group of entries for that driver.
  • "2019-12-15 [redacted]" is a timestamp: 15 December 2019, at 14:09 and 0 milliseconds. It is the label for one moment in time.
  • "x": 17.1345 and "y": 48.1315 are the coordinates recorded at that moment. x is the longitude, y is the latitude.
  • The second block, "2019-12-15 [redacted]", is two minutes later, with different coordinates 17.1685 and 48.142. The driver has moved.
  • The ... means more entries follow in the same pattern, and the closing }, ends this driver's group.

Each entry maps a timestamp to an x/y coordinate pair, so a single stable ID accumulates a movement history over time. That is the core of the tracking: the service kept handing out the same label next to fresh positions.

Step 2: Find your own ID

Once location data could be paired with a unique ID, the researcher knew there must be a way to identify who is behind the icon. The starting point was the research paper Unique in the Crowd: The privacy bounds of human mobility, which states that "four spatio-temporal points are enough to uniquely identify 95% of the individuals." Spatio-temporal points are simply places tied to times: where someone was, and when. The finding means that a handful of such points is usually enough to single a person out from a crowd, because people's routines are quite distinctive.

Using just the Waze map, the researcher found their own ID in a low-density area by monitoring their own location. A low-density area is one with few drivers around, so there are few icons and it is easy to see which one is you. With enough time, an attacker would find out the victim's ID by stalking the victim's known location. This does not scale for many accounts, though: following one person by hand works, but doing it for thousands of people does not. So the researcher continued analysing the Waze API for some kind of oraculum that would translate an ID to a username or vice versa. An oraculum here means a reliable way to ask the service a question and get a trustworthy answer back.

Step 3: The username leak on acknowledgements

The researcher found that if a user acknowledges any road obstacle or reports a police patrol, the user ID together with the username is returned by the Waze API to any Wazer driving through the place. Acknowledging is the button a driver taps to confirm that something on the road, such as an obstacle or a police patrol, is really there. The application usually does not show this data unless there is an explicit comment created by the user, but the API response contains the username, the ID, the location of an event and even the time when it was acknowledged. In other words, the screen hides the name, but the data sent to the browser still carries it. That is a privacy leak: the API response contains the username even though the application usually does not show it.

A script was created that parsed the JSON data and dumped it into human readable form. Parsing means reading structured text and picking out the pieces you care about, the way you might read a till receipt and copy just the item names onto a list.

Text
# example output of a script posted below:
    "Martin<REDACTED>": {
        "1569048403000": {
            "x": 17.140624523162845,
            "y": 48.144849615796936
        }
    },
    "Matej<REDACTED>": {
        "1569392866000": {
            "x": 17.140624523162845,
            "y": 48.144849615796936
        }
    },
    "Michael<REDACTED>": {
        "1569875132000": {
            "x": 17.140624523162845,
            "y": 48.144849615796936
        }
    }

Line by line:

  • The first line is a comment saying this is example output of a script posted below.
  • "Martin<REDACTED>" is now a username, not an ID.
  • "1569048403000" is a timestamp in a different format: a count of milliseconds since 1 January 1970, a common way computers store moments in time. It labels the moment of this record.
  • "x": 17.140624523162845 and "y": 48.144849615796936 are the coordinates recorded at that moment.
  • The same pattern repeats for "Matej<REDACTED>" and "Michael<REDACTED>", each with its own timestamp and coordinates.

Here the keys are usernames, each holding a timestamp keyed to an x/y coordinate pair. Many users actually use their legitimate names as a username.

Step 4: Build the dictionary and correlate

To leverage this leak, an attacker can pick multiple locations with high traffic and an existing short or long running notification on the obstacle. High traffic means many drivers pass through, so many acknowledgements happen there. A notification that has been running for a while keeps attracting acknowledgements, which means fresh names keep arriving. The attacker periodically calls the API and crawls the users that confirmed the existence of an obstacle. Periodically means on a schedule, again and again, rather than once.

Over time, a determined attacker can build a dictionary of user names and their IDs. A dictionary here is just a lookup table: one column of names, one column of IDs, so you can go from one to the other. In parallel, the attacker can store all the icon locations and correlate them with the users. Correlating means matching two separate collections of data that share a common label, like matching a name on a parcel to the address on a delivery note. The stable ID is that common label.

Why it worked

The design returns a stable identification number with each driver icon, and that ID does not change over time, so location samples can be accumulated against a single subject. Separately, the API returns the username together with the user ID to any Wazer driving through a place where an obstacle or police patrol was acknowledged, even though the application does not normally display that data unless the user created an explicit comment. The two together turn an anonymous icon into a named, trackable person. The report does not describe the server-side code, so the exact implementation mistake is not stated.

What it means for people

An attacker can track random drivers over time and, in many cases, identify who is behind the icon. Identification of a specific victim's ID is possible by stalking the victim's known location, but this does not scale for many accounts. The username leak scales better: by crawling acknowledgements at high-traffic locations with existing notifications, an attacker can build a dictionary of usernames and IDs and correlate stored icon locations with those users. Many users use their legitimate names as a username, which makes the identification direct.

The fix

The remediation given for the username leak is to show only names of people who made comments or other social activity and are not expecting privacy.

Advisory timeline:

Date Event
15.12.2019 bug reported
17.12.2019 report was triaged
19.12.2019 accepted as a valid bug
8.1.2020 Vulnerability Reward Program panel decided to issue a reward of $1337
24.1.2020 bug bounty paid

Things to test on other services

These are the checks the researcher suggests for looking for the same kind of problem elsewhere. Each one is written as what to do and what a positive result looks like.

  1. Stable identifiers in map or presence APIs. Request the same map area twice with a delay and compare the IDs attached to moving objects. A positive result is an ID that persists across requests while the object's coordinates change.
  2. Acknowledgement and report endpoints. Acknowledge an obstacle or report a police patrol, then request the same area from a second session. A positive result is a response containing the username, user ID, event location and acknowledgement time to a client that did not create the event.
  3. Username in responses not shown in the UI. Compare what the client renders with the raw JSON for the same view. A positive result is personal data present in the response but absent from the interface.
  4. Correlation of public activity with location history. Collect usernames from public comments or social activity and match them against stored location samples. A positive result is a username that maps consistently to one stable ID and its movement history.
  5. Low-density areas for self-identification. Monitor your own location in a sparse area and look for the ID that follows you. A positive result is a single ID whose coordinates track your own movements.

Glossary

  • API: the set of addresses and rules a service offers so other software can ask it questions and get answers back.
  • Chromium: the open-source browser project that Google Chrome and several other browsers are built on.
  • chrome.devtools: a part of the Chromium browser aimed at developers that lets a program inspect the traffic between a page and a server.
  • Coordinates (latitude and longitude): the two numbers that pin a point on the Earth, how far north or south and how far east or west.
  • Correlate: match two separate collections of data that share a common label.
  • Crawl: repeatedly ask for the same kind of data and collect the answers.
  • Dictionary: a lookup table that lets you go from one value to another, here from a username to an ID.
  • Extension: a small add-on installed into a browser to change or observe what it does.
  • ID: a label a service attaches to something so it can refer to it again later.
  • JSON: a text format for structured data, used by web pages and servers to exchange information.
  • Live map: the Waze feature that shows nearby drivers as icons on a map in the browser.
  • Low-density area: a place with few drivers around, so few icons appear on the map.
  • Oraculum: here, a reliable way to ask the service a question and get a trustworthy answer back.
  • Parse: read structured text and pick out the pieces you care about.
  • Privacy leak: information a user never chose to publish being handed out anyway.
  • Spatio-temporal points: places tied to times, where someone was and when.
  • Stable identifier: an ID that keeps pointing at the same subject across requests and over time.
  • Timestamp: a label for a moment in time, here either a readable date and time or a count of milliseconds since 1 January 1970.
  • Username: the name a user is known by in the service, which many people set to their real name.
  • Vulnerability Reward Program: a scheme that pays researchers for reporting valid security bugs.

More from Google

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.