Dav sharing permissions issue
A user in a group the calendar was shared with could remove another user's share and revoke the group's edit permission, though not the owner.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 6 months
- Disclosed after 7 months
Steps
- Create users "Test 1" and "Test 2", make "Test 1" member of "Group A"
- Share a calendar with group "Group A" editable
- Share the same calendar with user "Test 2" readonly
- As "Test 1" open the calendar app and unshare the calendar from "Test 2" - works
- As "Test 1" open the calendar app and remove edit permissions for "Group A" - works
In my opinion steps 4 and 5 should not be possible. The shares should not even be visible in my opinion.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sharing endpoints did not verify that the acting user was the calendar owner before allowing changes to the share list.
Impact
A user in a group the calendar was shared with could remove another user's access and the group's edit permission.
What the attacker needed
Two accounts; a group with one member; a calendar shared with the group and a user
How it was found
- Create two users and put one in a group.
- Share a calendar with that group as editable.
- Share the same calendar with the second user as read-only.
- As the first user, unshare the calendar from the second user.
- As the first user, remove the group's edit permission.
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 report has not been written yet. The Original tab links to the source.
Someone a calendar is shared with should only use it, not change who else can see it. Here a group member could remove another user's access and the group's edit rights.
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.