Federated share permissions can be increased by recipient
A recipient of a federated file share could send a crafted notification to the federated file sharing endpoint, using the share token and ID from their own database, to grant themselves write and share permissions. This let the recipient escalate a read-only share to full access.
- Disclosed after 38 days
- 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
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 notification endpoint accepted a permission-change request from the share recipient without verifying that the recipient is authorised to alter the share's permissions.
Impact
A recipient of a federated share could trivially increase their own permissions from read-only to full access.
What the attacker needed
A federated share received from another server; access to the recipient's own database
How it was found
- userA on serverX shares a file with userB on serverY; by default the share is read only.
- userB accepts the share.
- userB sends a request to the federated file sharing notifications endpoint on serverY.
- The request body is a RESHARE_CHANGE_PERMISSION notification containing the share token and share ID taken from userB's database, and requests read, write and share permissions.
- userB then has full access to the shared file.
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.
The recipient sent a permission-change notification to the sharing endpoint using their share token and ID, and the server applied it, so they gained more rights than the read-only share allowed.
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.