My first Google HOF
A user granted only the read-only Reviewer role in Dialogflow could still modify training phrases, add phrases to intents, delete conversations and change intent matching. An attacker with that limited role could degrade the whole agent and make it give wrong responses to users.
RV Sharma
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.
Context
Dialogflow is Google's natural language understanding platform for building conversational interfaces: mobile apps, web applications, devices, bots and interactive voice response systems. It accepts text or audio input and can answer with text or synthetic speech. The researcher had built several Google Actions with it, including PU Help and Food Guru.
The feature at the centre of this report is Roles. Dialogflow defines three roles:
| Role | Access |
|---|---|
| Admin | creator of the action, has full access |
| Developer | read-write access |
| Reviewer | only read access |
According to the documentation, a Reviewer cannot modify the agent. That is the boundary the report tests.
Setup
The researcher granted the Reviewer role to a user and then used every feature of Dialogflow as that user, to see what a Reviewer can and cannot do. No other tooling, version or configuration is described in the report.
Finding it
Working through the product as the Reviewer, the researcher moved to the Training tab. There, a Reviewer-role user was able to:
- modify the Training phrases
- add training phrases to the intent
- delete conversations
- change Intent matching through the Training tab
This contradicts the documented role model: a Reviewer is supposed to have read-only access, yet these are write operations on the agent. The researcher calls it a serious issue precisely because the documentation says the Reviewer cannot modify the agent, and the agent could be modified.
Exploitation
The report does not include HTTP requests, responses or payloads, so the steps below describe the actions taken rather than the traffic behind them.
Step 1: Grant the Reviewer role
The researcher assigned the Reviewer role to a user. This is the precondition: the attacker operates as a legitimate, low-privilege member of the project, not as an outsider.
Step 2: Exercise the product as the Reviewer
Still as the Reviewer, the researcher went through the available features to map what the role could reach. The researcher went through the available features to map what the role could reach, and the Training tab allowed writes.
Step 3: Modify training data
From the Training tab, the Reviewer was able to modify existing training phrases and add new training phrases to an intent. Training phrases are the examples Dialogflow uses to match user input to an intent, so changing them changes how the agent interprets what users say.
Step 4: Delete conversations
From the History tab, the Reviewer was able to delete conversations. Conversations are the record a project team uses to analyse data and improve the agent, so deleting them removes evidence the team relies on.
Step 5: Change intent matching
Through the Training tab, the Reviewer was able to change intent matching. Combined with the previous step, this lets a low-privilege user alter which intent the agent selects for a given input.
Root cause
The report does not describe the implementation, so the cause can only be inferred. The documented role model grants the Reviewer read-only access, yet the Training tab accepted write operations from that role. The likely explanation is that the authorisation check on the Training tab's write actions did not enforce the Reviewer restriction, so the UI and the backend allowed an operation the role model forbids.
Impact
A Reviewer can degrade the whole Dialogflow project: changing intent matching, altering training phrases and deleting conversations from the History tab. Because conversations are essential for a project team to analyse data and improve the agent, their loss directly harms the team's ability to work.
The researcher notes that an attacker can do this easily by using the agent on any device, such as a mobile phone. The resulting conversations appear in the Training tab, where the attacker can then change intent matching and add training phrases. Since a Reviewer can view all training phrases from the Intent tab, the attacker can also add those phrases to another intent. The net effect is that the agent gives wrong responses to users.
The precondition is membership of the project with the Reviewer role; the report does not describe any path for a user without a role.
Fix
Variants to test
- Other read-only roles in the same product. Create a user with each read-only role and attempt every write action in each tab. A positive result is any state change (a modified phrase, a new phrase, a deleted conversation) performed by a read-only user.
- Direct requests rather than the UI. If the UI hides an action from a Reviewer, replay the underlying request as that user. A positive result is a successful response where the role model expects a rejection.
- Sibling tabs and settings. The report found the gap in the Training tab; try the same pattern on other configuration surfaces of the agent. A positive result is a write that persists after reload.
- Cross-intent manipulation. As a Reviewer, copy training phrases from one intent into another. A positive result is the agent matching input to the wrong intent afterwards.
- Deletion of history. As a Reviewer, delete conversations and confirm they are gone for the project team. A positive result is permanent loss of records a read-only role should not be able to remove.
Advice to beginners
- Choose one target.
- Spend time on it (more than one month).
- Read the documentation many times.
The researcher reported the bug in June 2021 and received a $1337 award in September 2021, a first four-digit bounty.
What happened, in plain words
A security researcher found a way for a user with the lowest level of access in a Google product to change things they were only supposed to read. The product is Dialogflow, a tool for building chatbots and voice assistants. Dialogflow lets a project owner hand out roles to team members, and one of those roles, Reviewer, is documented as read-only. The researcher gave a user the Reviewer role, then used the product as that user and found that the Training tab still let them edit the examples the bot learns from, change how the bot matches what people say, and delete saved conversations. In other words, a person who was supposed to be able to look but not touch could quietly break the whole project. The researcher reported it in June 2021 and received a $1337 award in September 2021, a first four-digit bounty.
Context
Dialogflow is Google's natural language understanding platform for building conversational interfaces: mobile apps, web applications, devices, bots and interactive voice response systems. It accepts text or audio input and can answer with text or synthetic speech. The researcher had built several Google Actions with it, including PU Help and Food Guru.
A quick word on the terms, because they matter for the rest of the story. A conversational interface is any product you talk or type to and that answers back, like a phone menu that understands speech or a chat window on a website. Natural language understanding is the part of the software that works out what a person meant, rather than just matching exact words. An interactive voice response system is the automated voice you hear when you call a company and are asked to say what you want. A Google Action is an app built for Google's voice assistants, the kind of thing you invoke by speaking to a phone or a smart speaker.
The feature at the centre of this report is Roles. A role is a label attached to a user account that says what that account is allowed to do, a bit like a staff badge that opens some doors and not others. Dialogflow defines three roles:
| Role | Access |
|---|---|
| Admin | creator of the action, has full access |
| Developer | read-write access |
| Reviewer | only read access |
Read the table as three levels of trust. Admin is the owner: the person who created the action and can do anything. Developer can read and write, meaning they can look at settings and change them. Reviewer can only read, meaning they can look but not change anything. According to the documentation, a Reviewer cannot modify the agent. That is the boundary the report tests.
An agent here is the bot itself: the collection of settings, example sentences and conversation history that makes up one Dialogflow project. When we say someone modified the agent, we mean they changed the bot's behaviour, not just its appearance.
Setup
The researcher granted the Reviewer role to a user and then used every feature of Dialogflow as that user, to see what a Reviewer can and cannot do. No other tooling, version or configuration is described in the report.
Why start here? Because the interesting question is not whether an outsider can break in. It is whether someone who has been let in, but only at the lowest level, can do more than the rules say. To test that, you need an account with exactly that low level of access, and then you walk through the product as if you were that person. This is sometimes called testing the authorisation model: authorisation is the process of deciding whether a logged-in user is allowed to perform a particular action. Authentication is the earlier question of who you are; authorisation is what you may do once we know.
Finding it
Working through the product as the Reviewer, the researcher moved to the Training tab. There, a Reviewer-role user was able to:
- modify the Training phrases
- add training phrases to the intent
- delete conversations
- change Intent matching through the Training tab
This contradicts the documented role model: a Reviewer is supposed to have read-only access, yet these are write operations on the agent. The researcher calls it a serious issue precisely because the documentation says the Reviewer cannot modify the agent, and the agent could be modified.
A few of those words need unpacking. A tab is just a section of the product's web interface, like a tab in a settings screen. Training phrases are the example sentences a project team gives the bot so it can learn what people mean. If a user types "I want to order a pizza", the training phrases might include "order a pizza", "I'd like a pizza" and "get me a pizza". The bot compares what it hears against these examples. An intent is the category the bot is trying to recognise, such as "order food" or "cancel order". Intent matching is the step where the bot decides which intent a new sentence belongs to. Conversations are the saved records of what users actually said to the bot and how it answered.
So the four bullet points describe four kinds of change: editing the examples, adding new examples, deleting the records, and altering which category the bot picks. All four are writes. A read-only role should not be able to do any of them.
Exploitation
The report does not include HTTP requests, responses or payloads, so the steps below describe the actions taken rather than the traffic behind them.
That sentence is worth pausing on. When security people talk about a web request, they mean the message your browser sends to a server when you click something, and the message the server sends back. A payload is the part of that message carrying the actual data, for example the new text of a training phrase. Many bug reports show these messages so others can reproduce the finding exactly. This one does not, so we can only describe what was done through the interface.
Step 1: Grant the Reviewer role
The researcher assigned the Reviewer role to a user. This is the precondition: the attacker operates as a legitimate, low-privilege member of the project, not as an outsider.
Think of it like giving a new colleague a visitor badge that opens the front door and the meeting rooms but not the server room. The test is whether the badge really stops at the server room door. Low privilege means the account has few permissions; high privilege means it has many. The whole point of a role system is that low-privilege accounts cannot do high-privilege things.
Step 2: Exercise the product as the Reviewer
Still as the Reviewer, the researcher went through the available features to map what the role could reach. The researcher went through the available features to map what the role could reach, and the Training tab allowed writes.
This is methodical rather than lucky. You click through every menu and every button as the low-privilege user and note what happens. Most of the time the product refuses or hides the action, which is correct. The interesting result is the one place where it does not refuse. That place is where the rules and the software disagree.
Step 3: Modify training data
From the Training tab, the Reviewer was able to modify existing training phrases and add new training phrases to an intent. Training phrases are the examples Dialogflow uses to match user input to an intent, so changing them changes how the agent interprets what users say.
An everyday comparison: imagine a language class where the teacher writes example sentences on the board so students learn to recognise a topic. If a student can rub out those examples and write new ones, the class learns the wrong thing. Here the Reviewer could rewrite the bot's examples, so the bot would start treating ordinary sentences as belonging to the wrong category.
Step 4: Delete conversations
From the History tab, the Reviewer was able to delete conversations. Conversations are the record a project team uses to analyse data and improve the agent, so deleting them removes evidence the team relies on.
A history or log is the list of past events the system keeps. Teams read it to see what real users asked and where the bot failed. Deleting it is like shredding the feedback forms after a trial run: the team can no longer see what went wrong or prove that it happened.
Step 5: Change intent matching
Through the Training tab, the Reviewer was able to change intent matching. Combined with the previous step, this lets a low-privilege user alter which intent the agent selects for a given input.
Put the last three steps together and you can see the shape of the problem. The Reviewer can change the examples, change which category the bot picks, and erase the records that would show what happened. Each one alone is a write where a read was expected; together they let a low-privilege user steer the bot and remove conversation records..
Root cause
The report does not describe the implementation, so the cause can only be inferred. The documented role model grants the Reviewer read-only access, yet the Training tab accepted write operations from that role. The likely explanation is that the authorisation check on the Training tab's write actions did not enforce the Reviewer restriction, so the UI and the backend allowed an operation the role model forbids.
Two terms in that paragraph deserve a plain explanation. The UI, or user interface, is what you see and click in the browser. The backend is the software on the server that actually carries out the action and stores the result. A common mistake is to enforce a rule only in the UI, for example by hiding a button, while the backend still accepts the request if it arrives. Hiding a button is like putting a lock on the door but leaving the window open: anyone who knows the window is there can climb through. Proper enforcement means the server checks the role every time, no matter what the screen shows.
This kind of flaw is often filed under broken access control, which simply means the software does not correctly enforce who is allowed to do what. It is not a bug in a password or a lock; it is a bug in the rules about permissions.
Impact
A Reviewer can degrade the whole Dialogflow project: changing intent matching, altering training phrases and deleting conversations from the History tab. Because conversations are essential for a project team to analyse data and improve the agent, their loss directly harms the team's ability to work.
The researcher notes that an attacker can do this easily by using the agent on any device, such as a mobile phone. The resulting conversations appear in the Training tab, where the attacker can then change intent matching and add training phrases. Since a Reviewer can view all training phrases from the Intent tab, the attacker can also add those phrases to another intent. The net effect is that the agent gives wrong responses to users.
The precondition is membership of the project with the Reviewer role; the report does not describe any path for a user without a role.
In plain terms, the damage is not a stolen password or a leaked database. It is that the bot starts answering wrongly, and the team loses the records it would use to notice and fix that. For a business that relies on the bot to talk to customers, wrong answers are a real problem, and missing history makes it hard to prove what happened.
Fix
Notice the shape of the fix: check the role on the server for every write action, not just hide the button in the browser. The rule already existed on paper; the job is to make the software obey it.
Variants to test
These are follow-up ideas in the same spirit, useful if you want to look for similar problems yourself.
- Other read-only roles in the same product. Create a user with each read-only role and attempt every write action in each tab. A positive result is any state change (a modified phrase, a new phrase, a deleted conversation) performed by a read-only user.
- Direct requests rather than the UI. If the UI hides an action from a Reviewer, replay the underlying request as that user. A positive result is a successful response where the role model expects a rejection.
- Sibling tabs and settings. The report found the gap in the Training tab; try the same pattern on other configuration surfaces of the agent. A positive result is a write that persists after reload.
- Cross-intent manipulation. As a Reviewer, copy training phrases from one intent into another. A positive result is the agent matching input to the wrong intent afterwards.
- Deletion of history. As a Reviewer, delete conversations and confirm they are gone for the project team. A positive result is permanent loss of records a read-only role should not be able to remove.
A word on item 2, because it uses a term beginners meet early. Replaying a request means capturing the message the browser sends when an action is allowed, then sending the same message again yourself, for example with a tool that lets you edit and resend web requests. If the button is hidden but the server still accepts the message, the rule is only enforced in the UI. Item 3's phrase persists after reload means the change is still there when you refresh the page, which shows it was saved on the server rather than only changed on your screen.
Advice to beginners
- Choose one target.
- Spend time on it (more than one month).
- Read the documentation many times.
The researcher reported the bug in June 2021 and received a $1337 award in September 2021, a first four-digit bounty.
Why does that advice work? Picking one target means you stop spreading your attention thin and start learning how one product really behaves. Spending more than a month gives you time to notice the small inconsistencies that a quick look misses. Reading the documentation many times matters because the documentation is where the promised rules live, and a bug is often simply a place where the software does not keep its promise. That is exactly what happened here: the documentation said Reviewer is read-only, and the Training tab disagreed.
Glossary
- Admin: the role of the person who created the action, with full access.
- Agent: the Dialogflow bot itself, meaning the settings, examples and history that make up one project.
- Authentication: the process of proving who you are, for example by logging in.
- Authorisation: the process of deciding what a logged-in user is allowed to do.
- Backend: the software on the server that carries out actions and stores data.
- Broken access control: a flaw where software does not correctly enforce who may do what.
- Conversation: a saved record of what a user said to the bot and how it answered.
- Conversational interface: any product you talk or type to that answers back.
- Developer: the role with read-write access.
- Dialogflow: Google's platform for building chatbots and voice assistants.
- Google Action: an app built for Google's voice assistants.
- High privilege: an account with many permissions.
- History: the stored list of past events, such as past conversations.
- Intent: the category the bot is trying to recognise in what a user says.
- Intent matching: the step where the bot decides which intent a sentence belongs to.
- Interactive voice response system: the automated voice you hear on a phone call that asks you to say what you want.
- Low privilege: an account with few permissions.
- Natural language understanding: the part of software that works out what a person meant, rather than matching exact words.
- Payload: the part of a web request or response that carries the actual data.
- Persists after reload: a change is still there after you refresh the page, meaning it was saved on the server.
- Read-only: allowed to look but not to change anything.
- Read-write: allowed to look and to change.
- Replaying a request: capturing a web request and sending it again yourself, often with a tool that lets you edit it.
- Reviewer: the role with only read access.
- Role: a label on a user account that says what that account may do.
- Tab: a section of a web interface, like a tab in a settings screen.
- Training phrases: example sentences given to the bot so it can learn what users mean.
- UI (user interface): what you see and click in the browser.
- Web request: the message your browser sends to a server when you do something, and the message the server sends back.
- Write operation: an action that changes stored data, as opposed to reading it.