[Google VRP] Privilege escalation on https://dialogflow.cloud.google.com
Downgrading a user's role from Developer to Reviewer in Dialogflow did not remove the Developer permissions; the user retained all Developer actions. An attacker with a downgraded account could still perform privileged actions.
While testing the privilege escalation problems on https://dialogflow.cloud.google.com/ I noticed that downgrading the access level for the invited user does not work as expected.
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 role update logic added the new role's permissions without removing the old role's permissions, so permissions accumulated instead of being replaced.
Impact
A user whose role was downgraded could still perform all actions available to the higher-privileged Developer role, undermining access control.
What the attacker needed
Access to project sharing settings; ability to invite users; victim account with downgraded role
The fix
The issue was fixed according to the timeline.
How it was found
- Invite another user with the Developer role via the Share settings.
- Downgrade that user's role from Developer to Reviewer and apply the changes.
- Observe that the user can still perform all actions as a Developer.
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.
In many apps, you can invite other people and give them a role like 'Developer' or 'Reviewer'. A role is a set of permissions. The bug was that when an admin changed someone's role from Developer to Reviewer, the system added the Reviewer permissions but forgot to remove the Developer ones. So the user could still do everything a Developer can do, even though the screen said Reviewer.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.