Skip to content
Access control Disclosed report Intermediate

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.

rullzer Follow

Originally disclosed on HackerOne

Bounty$500 Medium 6.5 View original
  • Disclosed after 38 days
  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

The original report as published on HackerOne, by rullzer. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. userA on serverX shares a file with userB on serverY; by default the share is read only.
  2. userB accepts the share.
  3. userB sends a request to the federated file sharing notifications endpoint on serverY.
  4. 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.
  5. 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.

More by rullzer

View all

9 more disclosed reports, best first.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.