Skip to content
Access control Disclosed report Intermediate CVE-2020-8182

Missing server side controls when editing the board’s sharing permissions per user

The Deck app applied board permission checks only on the client side, so a user with only share access could modify the server response to mark edit and manage permissions as true. This allowed the attacker to grant themselves full control over the board.

warsocks Follow

Originally disclosed on HackerOne

High 7.3 View original
  • Triaged in 6 days
  • Fixed in 16 days
  • Paid in 16 days
  • Disclosed after 6 months

Author: Silvia Väli, Clarified Security (https://www.clarifiedsecurity.com/silvia-vali/) Date: 24th of March, 2020

Description: When the regular user is visiting the Deck view, all created boards are displayed along with the ones that are shared with the user by others. Available functionality within each of the shared boards depends whether the user has received share, manage, edit permissions.

Since the access control rules related to user’s permissions have only been applied on the client side and not on the server side, user can specify share/edit/manage permissions to be always true within the response (for example by using a proxy tool) when viewing board information. This way he can gain control over the board so he/she could apply the missing edit/manage permissions to him/herself directly from the UI.

Version information: Nextcloud 18.0.2 Deck 0.8.0 enabled

Pre-requisites as an admin user to follow the vulnerable path:

  • create 2 regular users in the next cloud, for example user silvia and user john. Users do not belong to the admin group.
  • Install the Deck app (installed version 0.8.0)

To reproduce the vulnerable path:

User: silvia

  1. Authenticate as user silvia and select Deck from the menu
  2. Create new board -> name it (“board for testing”)
  3. Add a new stack (“test test”)
  4. Click on “Show board for details”
  5. Add the other user john and only give him Share permission. Uncheck Edit and Manage.

User: john

  1. Now authenticate in the application as john -> click Deck from the menu and open the shared board “board for testing”. Since the board was only Shared and no edit permissions were granted, john cannot do much on the board.
  2. What john can do however is use a proxy tool such as Burp Suite to modify the response body. When john clicks on the Deck from the menu, following request is made:
GET /apps/deck/boards HTTP/1.1
Host: next.yy.ee
...
Connection: close
Cookie: …
  1. In the response to that request, you can see that john only been given the permission to share which only allows to read the data and not modify it.
[{"title":"board for testing",
"owner":{"primaryKey":"silvia","uid":"silvia","displayname":"silvia"},"color":"0082c9","archived":false,"labels":[],"acl":[{"participant":{"primaryKey":"john","uid":"john","displayname":"john"},"type":0,"boardId":7,"permissionEdit":false,"permissionShare":true,"permissionManage":false,"owner":false,"id":4}],"permissions":{"PERMISSION_READ":true,"PERMISSION_EDIT":false,"PERMISSION_MANAGE":false,"PERMISSION_SHARE":true},"users":[],"shared":1,"stacks":[],"deletedAt":0,"lastModified":1585045324,"id":7}]
  1. john however uses a proxy tool such as Burp Suite and applies via proxy -> options -> Match and replace that every time the following line with permissions is seen modify all the options to be equal to true.

Original: "permissionEdit":false,"permissionShare":true,"permissionManage":false,"owner":false Modified: "permissionEdit":true,"permissionShare":true,"permissionManage":true,"owner":true

  1. If john now refreshes the Deck page and opens the board “board for testing” -> Show board details -> Sharing -> he can add himself the permissions to Edit, Share, Manage to take over the board which was initially only shared with him.

Impact

Attacker would achieve control over the board and its data/attachment uploads etc.

The original report as published on HackerOne, by warsocks. 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 server did not enforce board permission checks, relying on the client to hide or disable controls.

Impact

The attacker could gain full control over the board and its data, including attachments.

What the attacker needed

Two regular user accounts; Deck app version 0.8.0 installed; Attacker has share-only access to a board; Attacker uses a proxy tool

How it was found

  1. As user silvia, create a board and add user john with only share permission.
  2. As user john, open the shared board and use a proxy to intercept the response to the boards request.
  3. Modify the response to set permissionEdit, permissionManage, and owner to true.
  4. Refresh the Deck page and open the board details to access sharing settings.
  5. Add edit, share, and manage permissions to yourself, taking over the board.

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 app checked whether you were allowed to edit a board only in the browser, not on the server. By changing the data the server sent back, a user with limited access could trick the app into thinking they had full rights, letting them take over the board.

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 from Nextcloud

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.