Privilege Escalation Vulnerability: Other Users of the Board can run Local Automation Buttons for Owner, Which is not visible to them.

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

Privilege Escalation Vulnerability in Trello

Summary by TechyCodec08

Privilege Escalation Vulnerability: Other Users of the Board can run Local Automation Buttons as Owners

Report details
  • Submitted

  • Target Location

    Butler for Trello
  • Target category

    Web App

  • VRT

    Broken Access Control (BAC) > Privilege Escalation
  • Priority

    P4
  • Bug URL
    https://app.butlerfortrello.com/api/powerup-run-command
  • Description

    Attack Scenario

    For a Trello Board there are a lot of Automation's you can create, out of which one is the Board Button.
    Now, a Board Button can be of two types:

    1. Local to the user who created it.
    2. Global to the entire Board who have permission to view/run it.

    This usability can be changed by enabling/disabling the Automation Button Option ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON

    image-2024-12-10T01:36:33.934Z.png

    When the Owner of the Board Creates an Automation Button and does not enable the sharing option for this button in the board. Then that button is only visible and executable to the owner of the board.

    The above restriction fails for Board Button Automation and by sending the below request with Token of any other user, that user can still execute the Button.

    image-2024-12-10T01:11:45.629Z.png

    In the above request there can be two scenarios:

    1. The Owner of the button enabled sharing option for the Board Button and others users captured this request. Now, even after the Board Owner Disabled the sharing option for the Board Button, other users can still use the above request to execute the button which they are not allowed anymore.

    2. Other users can create this request from scratch as most of the IDs are anyways visible to Other Users.
      cmd_id: The format is <OwnerID>-<Incremental ID>.
      uid: OwnerID, Visible to all Members.
      board_id: ID of Board where Button is created, Visible to all Members.
      board_name: Name of the Board where Button is created, Visible to all Members.

    The fix is necessary because there is a restriction on executing Automation for Card Button, along with all other features like Viewing/Creating/Deleting/Editing for the Automation of a Board Button.
    Hence, there should be a similar restriction for executing a Board Button.

    Steps to Reproduce

    Automation Board Button

    1.Login as Owner of the Board
    2.Create an Automation Board Button, and disable the option ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON

    image-2024-12-10T01:08:47.826Z.png

    3.You will see that the button is visible in your Board

    image-2024-12-10T01:15:17.011Z.png

    4.Login as any other user like a normal member or other admin of the board, and you will see that you cannot see/access the same button on your board.

    image-2024-12-10T01:16:41.012Z.png

    5.Send the following request with the X-Butler-Trello-Token for that user and you will get a Success Response and the Automation Button will Execute with the desired results, even though it is not accessible from the boards of other users.

    image-2024-12-10T01:11:45.629Z.png

    Automation Card Button

    The same Scenario does not work for Automation Card Button.

    1.Automation Card Created by Owner of the Board.

    image-2024-12-10T01:20:28.692Z.png

    2.Visible for Owner

    image-2024-12-10T01:21:25.378Z.png

    3.Not Visible for Any Other User in there Board View

    image-2024-12-10T01:22:14.650Z.png

    4.The request to run the Automation Card Button is as Follows, which when run with the cookies of Any Other user of the Board except the Owner who created the Button, gives either a 401 Unauthorized Response or a 404 Not Found Response.

    When Run as a Non-Member/Observer

    image-2024-12-10T01:25:52.739Z.png

    When run as a Normal-Member/Other-Admin

    image-2024-12-10T01:25:25.724Z.png

    Business Impact

    The Above scenario proves that the Restriction for executing Automation Board Button is Not Working As Intended, which allows any Board Member/Admin to execute Automation Buttons for the Owner of The Board or any other user who created the Automation Button.

    The fix is necessary because there is a restriction on executing Automation for Card Button, along with all other features like Viewing/Creating/Deleting/Editing for the Automation of a Board Button.

    Hence, there should be a similar restriction for executing Automation Button for a Board.

    Vulnerability Fix

    There should be a similar restriction for Board Buttons as there is one for Card Buttons and Other features of Board Buttons.
    Also, there should be a server side check to see if Other users are performing any restricted Actions.

    CVSS Score

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

Activity