Skip to content
Info disclosure Write-up Beginner

Auth Bypass in Google Assistant

A locked Android phone and a Google Home with personal results disabled would answer Assistant queries about the user's location history, revealing places visited and when. An attacker with physical access could ask repeated queries to map out the victim's location history without unlocking the device.

David Schütz Follow

Published on feed.bugs.xdavidhu.me

Bounty$2,674 View original

Summary: Location history can be extracted from locked phone via Assistant queries

David Schütz, on feed.bugs.xdavidhu.me

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. 7 min read.

Context

Google Assistant answers queries on Android phones and on Google Home devices. Some answers are classified as "personal results": on a locked phone, or on a Home device with Personal Results disabled, Assistant is supposed to refuse them and ask the user to unlock or enable the setting first. The researcher found that a set of Location History queries were answered anyway, on a locked phone and on a Google Home Mini with Personal Results disabled, exposing places the account owner had recently visited.

The report describes the affected surface as the Assistant app on Android (com.google.android.googlequicksearchbox is named later, in the context of the fix) and Google Home / Nest devices. The researcher's own write-up is hosted on his site, and the asset listed for the report is feed.bugs.xdavidhu.me.

Setup

  1. An Android phone with Assistant, signed in to an account that has places saved in Location History.
  2. The device locked.
  3. Voice Match / Trusted Voice (voice unlock) disabled, and "Lock screen personal results" disabled.
  4. A Google Home Mini with Personal Results disabled, for the second half of the test.

No special tooling is needed: the whole issue is reproduced by talking to Assistant.

Finding it

The researcher noticed that a specific class of Assistant queries about Location History was answered on a locked phone, while other personal queries correctly triggered an unlock request. The answers included both a list of places and relative visit times such as "You visited yesterday." or "You visited 3 weeks ago.". The same behaviour appeared on a Google Home Mini with Personal Results disabled, which listed three recent places from the account's Location History.

Because the device settings were confirmed to have voice unlock and lock-screen personal results turned off, the behaviour did not look like a local misconfiguration. The researcher's hypothesis was that the Location History add-ons in Assistant are handled server-side and do not set the "personal" flag that the client uses to decide whether an answer may be shown on a locked device or on a Home device without personal results.

Exploitation

Step 1: prepare the account and lock the phone

Set up an Android phone with Assistant using an account that has places saved in Location History, then lock the device. The account must already have Location History data for the queries to return anything.

Step 2: trigger Assistant on the lock screen

Wake Assistant from the lock screen without unlocking. The report does not describe the exact trigger used.

Step 3: ask about visited places

Ask:

Text
What [PLACE_TYPE] have I visited?

PLACE_TYPE can be for example "places", "restaurants" or "shops". Assistant answers with "Here are the most recent ones:" and lists the places the victim visited, without the screen being unlocked. For recently visited places it also adds lines such as "You visited yesterday." or "You visited 3 weeks ago.".

Step 4: leak the same data through a place-name query

A second path uses a specific business name instead of a category:

  1. Make sure the victim account has visited a nearby Burger King.
  2. Trigger Assistant on the lock screen and say:
Text
Burger King
  1. If multiple results are available, Assistant shows a list, and the list includes sensitive information such as "You visited yesterday.". If there is only one result, or the attacker selects one by saying "the first one", the "Place Card" result also exposes the same "You visited yesterday." style information.

Step 5: repeat against a Google Home device

The same steps work, more or less similarly, on a Google Home device with Personal Results disabled. The researcher's non-personal-results Google Home Mini listed three recent places from the account's Location History when asked:

Text
What places have I visited?

Step 6: confirm the contrast with other personal queries

Any other personal query results in Assistant requesting an unlock. The Location History queries above are the ones that proceed on a locked phone, which is what makes the leak a bug rather than expected behaviour.

Root cause

The researcher's assessment, stated as a suspicion, is that this is a server-side issue: the Location History add-ons in Assistant do not set some kind of "personal" flag, so both the locked Assistant on a phone and a Google Home with personal results disabled answer the query without requesting unlock or permission. The researcher's suspicion is that these responses are never marked as personal, so they are not blocked.

The researcher's view is that these Location History answers are simply not treated as personal results. The researcher's argument is that Location History in any form is a personal result, since it is arguably more privacy sensitive than data such as the account holder's name, which is already gated.

Impact

The location history of a user is extremely sensitive data, and parts of it should never be accessible from a locked phone. An attacker who gets hold of an unattended, locked phone can issue a series of queries and map out the user's location history. The same applies to a Google Home device with Personal Results disabled, which is often treated as being in a trusted physical environment.

The report does not quantify how many queries are needed or how far back the data goes; it only shows that recent places and relative visit times are returned.

Fix

A fix was pushed for the mobile app, in com.google.android.googlequicksearchbox, and the researcher confirmed it addressed the issue there. At that point Google Home devices were still vulnerable: a Nest Audio with personal results disabled answered:

Text
what restaurants have I visited?

just as in the proof-of-concept video. The researcher suggested this might be because some actions behave differently on a phone and on a Home device, for example turn on the lights requires an unlock on the phone but works without personal results on a Home device.

Later the researcher reported that the Nest had started answering with the standard refusal, "For help with that, first you'll need to allow personal...", so the issue was fixed on both the mobile app and Home devices. Google confirmed the issue was fixed and rolled out. The researcher also noted that at that point he could no longer trigger Assistant on the lock screen at all, without knowing why.

Separately, the researcher raised a set of confusing Assistant privacy settings that he considered a possible bug of its own:

  • The personal results settings moved to Google App -> More -> Settings -> Google Assistant -> Personalization, which looks like a central control page but does not contain all personal results settings, giving a false sense of security.
  • Disabling everything lock-screen related on that page (Lock screen personal results, Personal suggestions on lock screen before you ask, On headphones) does not remove all ways to get personal results on the lock screen.
  • Normal Bluetooth headphones can still issue personal queries. To stop that you must go to Google App -> More -> Settings -> Voice and disable Allow Bluetooth requests with device locked, which is enabled by default.
  • On headphones on the Personalization page only affects wired headphones and some special Bluetooth headphones such as Pixel Buds; other normal Bluetooth headphones and speakers are controlled by Allow Bluetooth requests with device locked on a different page.
  • On the Voice page, Allow wired headset requests with device locked is now basically useless, and toggling it sometimes redirects to the Personalization page and sometimes does not.

The researcher argued that with physical access and a paired Bluetooth headphone, personal queries can be asked without unlock credentials on most Android devices. The researcher made a new report with the ID b/178587104.

Variants to test

  • Ask other category queries on a locked phone, for example What shops have I visited? or What restaurants have I visited?. A positive result is a list of places with relative visit times while the screen stays locked.
  • Ask about a specific business the account has visited, then select the first result. A positive result is a place card showing "You visited yesterday." style text without an unlock prompt.
  • Repeat the same queries on a Home or Nest device with Personal Results disabled. A positive result is the same list or place card instead of the "first you'll need to allow personal..." refusal.
  • Compare with a known personal query such as asking for the account holder's name on the same locked device. If that one asks for an unlock while the location queries do not, the classification gap is present.
  • With a paired Bluetooth headphone and the phone locked, ask personal queries with Allow Bluetooth requests with device locked left at its default. A positive result is a personal answer delivered through the headphone without unlocking.
  • Toggle On headphones on the Personalization page and retest with wired and Bluetooth headphones separately. A positive result is that Bluetooth personal queries still work while the setting is off.

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. 11 min read.

What happened, in plain words

Google Assistant is the voice helper built into Android phones and into Google Home and Nest smart speakers. You say "OK Google" or press a button, ask a question, and it answers. Some of those answers are marked as "personal results": things that belong to you and nobody else, such as your name or your calendar. When your phone is locked, or when a Home speaker has Personal Results switched off, Assistant is supposed to refuse personal answers and ask you to unlock the phone or turn the setting on first.

David Schütz found that a group of questions about Location History, the record of places your Google account has visited, were answered anyway. On a locked phone, and on a Google Home Mini with Personal Results disabled, Assistant listed places the account owner had recently been to, and even said things like "You visited yesterday." or "You visited 3 weeks ago.".

That matters because anyone who picks up your unattended, locked phone, or talks to your speaker, could ask a series of questions and slowly build a picture of where you have been. Location History is some of the most sensitive data an account holds.

The researcher's own write-up lives on his website, and the asset listed for the report is feed.bugs.xdavidhu.me. The affected surface is the Assistant app on Android (the package com.google.android.googlequicksearchbox is named later, when the fix is discussed) and Google Home and Nest devices.

Setting up the test

To reproduce the issue you need:

  1. An Android phone with Assistant, signed in to an account that already has places saved in Location History.
  2. The phone locked.
  3. Voice Match or Trusted Voice (the feature that lets you unlock by voice) turned off, and "Lock screen personal results" turned off.
  4. A Google Home Mini with Personal Results disabled, for the second half of the test.

No special tools are involved. The whole issue is reproduced by talking to Assistant. That is worth pausing on: a security bug does not have to involve code or hacking tools. Sometimes it is simply a product answering a question it should have refused.

How the researcher found it

The researcher noticed that one specific kind of Assistant question about Location History was answered on a locked phone, while other personal questions correctly triggered an unlock request. The answers included a list of places and relative visit times such as "You visited yesterday." or "You visited 3 weeks ago.".

The same thing happened on a Google Home Mini with Personal Results disabled. It listed three recent places from the account's Location History.

Because the device settings were confirmed to have voice unlock and lock-screen personal results turned off, this did not look like a mistake in the phone's configuration. The researcher's hypothesis was that the Location History features inside Assistant are handled on Google's servers, and that those server-side answers never get marked with the "personal" flag. The researcher's suspicion is that without that flag, the answer is not blocked.

Reproducing it, step by step

Step 1: prepare the account and lock the phone

Set up an Android phone with Assistant using an account that has places saved in Location History, then lock the device. The account must already have Location History data, otherwise the questions have nothing to return. This step exists to make sure the test is fair: the data has to be there before you can check whether Assistant gives it away.

Step 2: trigger Assistant on the lock screen

Wake Assistant from the lock screen without unlocking the phone. The report does not describe the exact trigger used. The point of this step is to put Assistant in the state where it is supposed to be cautious: the screen is locked, so personal answers should be blocked.

Step 3: ask about visited places

Ask:

Text
What [PLACE_TYPE] have I visited?

PLACE_TYPE is a placeholder for a category of place, for example "places", "restaurants" or "shops". In plain words, the sentence becomes "What restaurants have I visited?" or "What shops have I visited?".

Assistant answers with "Here are the most recent ones:" and lists the places the victim visited, without the screen being unlocked. For recently visited places it also adds lines such as "You visited yesterday." or "You visited 3 weeks ago.".

This is the core of the bug. The question is ordinary, the answer is ordinary, but the answer should not have been given while the phone was locked.

Step 4: leak the same data through a place name

A second path uses a specific business name instead of a category:

  1. Make sure the victim account has visited a nearby Burger King.
  2. Trigger Assistant on the lock screen and say:
Text
Burger King
  1. If multiple results are available, Assistant shows a list, and the list includes sensitive information such as "You visited yesterday.". If there is only one result, or the attacker selects one by saying "the first one", the "Place Card" result also exposes the same "You visited yesterday." style information.

A "Place Card" is the result Assistant shows for a specific business. Here the card also carries a line about when the account holder last visited, which is exactly the kind of personal detail that should require an unlock.

This step matters because it shows the leak is not limited to one phrasing. Even naming a shop out loud is enough to get visit information back.

Step 5: repeat against a Google Home device

The same steps work, more or less similarly, on a Google Home device with Personal Results disabled. The researcher's non-personal-results Google Home Mini listed three recent places from the account's Location History when asked:

Text
What places have I visited?

A Home device with Personal Results disabled is meant to behave like a locked phone: it should not read out personal information. Here it did, which shows the problem is not specific to the phone's lock screen but to how these particular answers are classified.

Step 6: compare with other personal questions

Any other personal question makes Assistant ask for an unlock. The Location History questions above are the ones that go ahead on a locked phone, and that contrast is what makes this a bug rather than expected behaviour. If every personal question were answered on a locked phone, the setting would simply not exist; the fact that some are blocked and these are not is the gap.

Why it happened

The researcher's assessment, stated as a suspicion, is that this is a server-side issue. The Location History features in Assistant do not set some kind of "personal" flag, so both the locked Assistant on a phone and a Google Home with personal results disabled answer the question without asking for an unlock or permission. The check that normally blocks personal answers on a locked screen therefore never sees these responses as personal.

The researcher's view is that these Location History answers are simply not treated as personal results. The researcher's argument is that Location History in any form is a personal result, since it is arguably more privacy sensitive than data such as the account holder's name, which is already blocked.

What the impact is

A user's location history is extremely sensitive data, and parts of it should never be accessible from a locked phone. An attacker who gets hold of an unattended, locked phone can ask a series of questions and map out the user's location history. The same applies to a Google Home device with Personal Results disabled, which is often treated as sitting in a trusted physical environment.

The report does not quantify how many questions are needed or how far back the data goes. It only shows that recent places and relative visit times are returned.

The fix, and the second round

A fix was pushed for the mobile app, in com.google.android.googlequicksearchbox, and the researcher confirmed it addressed the issue there. At that point Google Home devices were still vulnerable. A Nest Audio with personal results disabled answered:

Text
what restaurants have I visited?

just as in the proof-of-concept video. The researcher suggested this might be because some actions behave differently on a phone and on a Home device. For example, turn on the lights requires an unlock on the phone but works without personal results on a Home device.

Later the researcher reported that the Nest had started answering with the standard refusal, "For help with that, first you'll need to allow personal...", so the issue was fixed on both the mobile app and Home devices. Google confirmed the issue was fixed and rolled out. The researcher also noted that at that point he could no longer trigger Assistant on the lock screen at all, without knowing why.

A second problem: confusing privacy settings

Separately, the researcher raised a set of confusing Assistant privacy settings that he considered a possible bug of its own. These are worth reading even if you never touch Assistant, because they show how a settings screen can give a false sense of safety.

  • The personal results settings moved to Google App -> More -> Settings -> Google Assistant -> Personalization. That page looks like a central control panel for all personal results, but it does not contain all of them, so a user can believe everything is off when it is not.
  • Disabling everything lock-screen related on that page (Lock screen personal results, Personal suggestions on lock screen before you ask, On headphones) does not remove all ways to get personal results on the lock screen.
  • Normal Bluetooth headphones can still ask personal questions. To stop that you must go to Google App -> More -> Settings -> Voice and disable Allow Bluetooth requests with device locked, which is enabled by default.
  • On headphones on the Personalization page only affects wired headphones and some special Bluetooth headphones such as Pixel Buds. Other normal Bluetooth headphones and speakers are controlled by Allow Bluetooth requests with device locked on a different page.
  • On the Voice page, Allow wired headset requests with device locked is now basically useless, and toggling it sometimes redirects to the Personalization page and sometimes does not.

The researcher argued that with physical access and a paired Bluetooth headphone, personal questions can be asked without unlock credentials on most Android devices. The researcher made a new report with the ID b/178587104.

Things to try if you want to test it yourself

These are the checks the researcher describes, written so that someone new to security can follow them. Each one has a clear sign of success.

  • Ask other category questions on a locked phone, for example What shops have I visited? or What restaurants have I visited?. A positive result is a list of places with relative visit times while the screen stays locked.
  • Ask about a specific business the account has visited, then select the first result. A positive result is a place card showing "You visited yesterday." style text without an unlock prompt.
  • Repeat the same questions on a Home or Nest device with Personal Results disabled. A positive result is the same list or place card instead of the "first you'll need to allow personal..." refusal.
  • Compare with a known personal question such as asking for the account holder's name on the same locked device. If that one asks for an unlock while the location questions do not, the classification gap is present.
  • With a paired Bluetooth headphone and the phone locked, ask personal questions with Allow Bluetooth requests with device locked left at its default. A positive result is a personal answer delivered through the headphone without unlocking.
  • Toggle On headphones on the Personalization page and retest with wired and Bluetooth headphones separately. A positive result is that Bluetooth personal questions still work while the setting is off.

Glossary

  • Assistant: Google's voice helper on Android phones and Google Home and Nest speakers; you ask a question and it answers.
  • Personal results: answers that belong to a specific account, such as your name or your location history, which Assistant is supposed to withhold on a locked phone or on a Home device with the setting off.
  • Location History: the record Google keeps of places your account has visited, based on your device's location.
  • Lock screen: the screen you see before you enter your PIN, pattern or password; the phone is locked and most personal features should be restricted.
  • Voice Match / Trusted Voice: features that let you unlock the phone by saying "OK Google" with your voice.
  • Google Home / Nest: Google's smart speakers and displays, which run Assistant and can be configured to allow or block personal results.
  • Server-side: work done on Google's computers rather than on your phone; the opposite is client-side, work done on the device itself.
  • Flag: a small marker attached to a piece of data that tells other software how to treat it, for example "this answer is personal".
  • Package name: the unique identifier of an Android app, such as com.google.android.googlequicksearchbox.
  • Proof of concept (PoC): a demonstration, often a video, showing that a bug can really be triggered.
  • Place Card: the small panel Assistant shows about a business, with details such as its name and address.
  • Bluetooth headphone: a wireless headset paired with the phone; some Assistant settings treat these differently from wired headphones.
  • Pixel Buds: Google's own Bluetooth earbuds, which the report says are covered by a different setting from ordinary Bluetooth headphones.
  • Default: the setting a product ships with, before the user changes anything.
  • Bug report ID: the reference number a bug tracker gives a report, such as b/178587104.

More by David Schütz

View all

13 more disclosed reports, best first.

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.