Privilege Escalation Vulnerability: A Normal Workspace Member can bypass the restriction of Board Deletetion Permision set by Workspace Admins, to delete any board in the workspace

Disclosed by
TechyCodec08
  • Engagement Trello
  • Disclosed date over 1 year ago
  • Reward $1,200
  • Priority P3 Bugcrowd's VRT priority rating
  • Status Resolved This vulnerability has been accepted and fixed
Summary by Trello

Workspace Board Authorization Bypass Vulnerability in Trello

Summary by TechyCodec08

A Normal Workspace Member can bypass the restriction of Board Deletion Permision set by Workspace Admins, to delete any board in the workspace

Report details
  • Submitted

  • Target Location

    trello.com
  • Target category

    Web App

  • VRT

    Broken Access Control (BAC) > Privilege Escalation
  • Priority

    P3
  • Bug URL
    Empty
  • Description

    Attack Scenario

    In a Premium Trello Workspace, the Workspace Admins can change permission as to who can delete public/private/workspaceVisible Boards.
    image-2024-12-16T13:58:11.611Z.png
    There are three permission options for all the board visibility

    1. Anyone can Delete Boards
    2. Workspace Admins can Delete Boards
    3. No one can Delete Boards

    image-2024-12-16T13:59:53.525Z.png

    If the Workspace Admins changes the permission so that only Workspace Admins can Delete Boards, then there are two restriction applied for Workspace Members.

    1. Workspace Members cannot delete any Board for that Workspace.
    2. Workspace Members cannot reopen/move any board to their own Workspace, doing so actually removes/deletes the Board from Original Workspace where deletion was prohibited.

    image-2024-12-16T14:07:22.626Z.png

    All of this restriction can be bypassed and the Workspace Member can Move this Board to his own Workspace, which leads to the deletion of the board from the original workspace.

    Steps to Reproduce

    Workspace Owner Perspective

    1. Login as Workspace Admin/Owner and add any Trello User as a Normal Workspace Member to your work Workspace
    2. Go to Workspace Settings and change the permission to delete board only to admins image-2024-12-16T14:01:09.276Z.png

    Workspace Member Perspective

    1. Login as Workspace Member and create a board.
    2. Being a Workspace Member, even if you are Board Admin you wont be able to delete any board for any visibility - public/private/org image-2024-12-16T14:03:14.029Z.png
    3. Even if you send the same request using BurpSuite, you will get the following Unauthorized Response. image-2024-12-16T14:04:50.530Z.png
    4. If you try to close and reopen the board in some other Workspace that you own, you will still get the following error.

    image-2024-12-16T14:07:22.626Z.png
    5.A Workspace Member can bypass all this restriction by sending the below request using Burp, which will delete the Board from Original Workspace and moves it to a different Workspace which the Workspace Member Owns, bypassing the restriction for Deletion of Board by Workspace Members.

    PUT /1/boards/67602d9ba379b5827eb9c49c HTTP/2
    Host: trello.com
    Cookie: <WORKSPACE-MEMBER-COOKIES>
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
    Accept: */*
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate, br
    Referer: https://trello.com/b/zEsX5ZcQ/workspacememberboard001
    Content-Type: application/json
    X-Trello-Client-Version: build-214455
    X-Trello-Traceid: 67602ccd2ddacfaff4d921cdcf8daff0
    X-Trello-Task: delete-board
    X-B3-Spanid: 974d9259cdb61e76
    X-B3-Traceid: 67602ccd2ddacfaff4d921cdcf8daff0
    Content-Length: 122
    Origin: https://trello.com
    Sec-Fetch-Dest: empty
    Sec-Fetch-Mode: cors
    Sec-Fetch-Site: same-origin
    Te: trailers
    
    {
    "idOrganization":"67601adaca94c108be43106b",
    "dsc":"<WORKSPACE-MEMBER-CSRF-TOKEN>"
    }
    

    For the above request to be successful you need two IDs

    1. BoardID: Present in the URL, which is the Board ID you want to delete, which is visible to all Members
    2. idOrganization: Present in the Request Body, which is the Workspace ID which the Workspace Member Owns.

    6.After the Board is Deleted and Moved to a different Workspace Owned by the Workspace Member, he can then delete this Board from his own Workspace as well, thus ensuring that the Board is deleted forever.

    Business Impact

    Despite of the so many Restriction for Deleting a Workspace Board, a Workspace Member can bypass all the restrictions and delete the Board from the workspace, which is a breach of Access Control and comes under Vertical Privilege Escalation Bug Class.

    CVSS SCORE

    CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | CVSS = 6.5 (MEDIUM)

Activity