Skip to content
Access control Write-up Beginner

[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.

0x01alka Follow

Published on 0x01alka.medium.com

Bounty$3,134 View original

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.

lalka, on 0x01alka.medium.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.

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

  1. Invite another user with the Developer role via the Share settings.
  2. Downgrade that user's role from Developer to Reviewer and apply the changes.
  3. 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.

More by 0x01alka

View all

1 more disclosed report, 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.

Broken access control

The lesson behind this report.

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.