File drop public link can also be converted to federated share
A file drop public link could be converted into a federated share by manually crafting a request, even though the UI hides that option. This could grant read permissions to a share that was intended to be write-only, potentially exposing files.
- Triaged in 12 hours
- Fixed in 23 days
- Paid in 13 days
- Disclosed after 53 days
So bear with me. Because this one requires some user interaction and makes some assumptions.
- victim creates a files drop public link
- attacker has that link
- the 'add to your nextcloud is hidden' but if you manually craft the request and send it a federated share will still be created.
for example
curl 'https://localhost/apps/federatedfilesharing/createFederatedShare' -X POST -d 'shareWith=user2%40https%3A%2F%2Flocalhost&token=KP3wSTdNbxsLGnq'
- victim checks their shares for this folder
- victim sees the federated share and checks the permission and sees the create permission, freaks out because they didn't want to give anybody that besides the file drop.
- Now the share is updated, create permissions are gone but read permissions are granted
So this is kind of a long short. But there is just so much happening that a user without any knowledge of the system can freak out or just mess up. At step 3 the API should error out and just refuse to create the federated share. To make sure no confusion can occur.
Impact
In the worst case making a share readable when it never was. However as stated that is unlikely. But it should be considered and handled graceful as this is actually easy to prevent by a simple check before creating the federated share.
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 server does not check whether the share token belongs to a file drop before creating a federated share, allowing the hidden action to succeed.
Impact
In the worst case, a share that was never meant to be readable could become readable, though the report notes this is unlikely.
What the attacker needed
Victim creates a file drop link; attacker knows the link token; attacker can send crafted requests
How it was found
- Victim creates a file drop public link.
- Attacker obtains that link.
- Attacker manually sends a request to create a federated share using the link's token.
- Victim checks their shares and sees the federated share with create permission.
- Victim updates the share, removing create permission but granting read 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.
A file drop link lets someone upload files without seeing what is already there. The report shows that a hidden feature could be triggered by sending a special request, turning the upload-only link into a normal share that lets someone read files. The fix is to block that request when the link is a file drop.
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.