Escalating a duplicate Access Control bug to hijack Google Calendar Accounts for a €300 Bounty
The calendar-linking endpoint lacked access control, so any user could change the calendar ID and name to point at another user's pending calendar. An attacker could then select a victim's personal calendar and set it public, exposing all its events.
Hello everyone! As my first Bug Bounty write-up, I’ll be sharing an interesting Access Control vulnerability I found on a private program.
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 endpoint that completes calendar linking did not verify that the pending calendar belonged to the requesting user, trusting the supplied calendar ID and name instead.
Impact
An attacker could take over any pending personal calendar connected to a victim's account and make it public, viewing all events within it.
What the attacker needed
Victim has a calendar in pending state; attacker knows the calendar ID and name
How it was found
- Start syncing a Google Calendar so the linked calendar sits in a pending state.
- Send a request to the calendar select endpoint, replacing the calendar ID and calendar name with the victim's pending calendar.
- Set the access value to public so the victim's events become visible.
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.
When you connect an outside calendar to an app, the app holds it in a waiting state until you finish choosing settings. The app did not check that the person finishing those settings was the same person who started the connection. So someone else could finish the setup for your calendar and make it public, letting them read your events.
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.