Privilege Escalation Vulnerability: Other Users of the Board can run Local Automation Buttons for Owner, Which is not visible to them.
A board button automation created by the board owner without sharing enabled could still be executed by other board members via a crafted API request. This allowed unauthorised users to run the owner's private automation, potentially causing unintended actions.
Originally disclosed on Bugcrowd
- Accepted in 3 days
- Fixed in 6 months
- Disclosed after 8 months
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
10 Dec 2024 02:10:59 UTC
-
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:
- Local to the user who created it.
- 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
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.
In the above request there can be two scenarios:
- 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.
- 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
3.You will see that the button is visible in your Board
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.
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.
Automation Card Button
The same Scenario does not work for Automation Card Button.
1.Automation Card Created by Owner of the Board.
2.Visible for Owner
3.Not Visible for Any Other User in there Board View
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
When run as a Normal-Member/Other-Admin
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)
Context
Butler for Trello is the automation layer that lets Trello users build rules, card buttons and board buttons that run commands on a board. This report concerns one of those automation types, the Board Button, and the endpoint that runs it:
https://app.butlerfortrello.com/api/powerup-run-command
A Board Button can be either local to the user who created it, or global to the entire board whose members have permission to view and run it. Whether other people can enable the button is controlled by an option labelled ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON. When the board owner creates an automation button and leaves that sharing option disabled, the button is supposed to be visible and executable only by the owner. The researcher found that this restriction is not enforced when the button is executed through the API.
The report was submitted on 10 Dec 2024 02:10:59 UTC against the target Butler for Trello, category Web App, classified under VRT as Broken Access Control (BAC) > Privilege Escalation, priority P4. The researcher is TechyCodec08 and the disclosed bounty was 300.00 USD.
Setup
Two roles are needed to reproduce the issue:
- The owner of the board, who creates the automation button.
- Any other user of the board, such as a normal member or another admin, who should not be able to see or run that button.
The only tooling the report relies on is the ability to capture and replay HTTP requests, since the attack is a request sent with the other user's X-Butler-Trello-Token. The precondition is a board button created by the owner with the sharing option ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON left disabled.
Finding it
The researcher started from the intended behaviour of the feature. A board button created by the owner without the sharing option enabled is only visible and executable to the owner. The researcher found that sending the run request with the token of any other user still executed the button.
Two scenarios make the issue reachable:
- The owner had enabled the sharing option at some point, other users captured the request, and after the owner disabled sharing those users can still replay the request to execute the button they are no longer allowed to run.
- Other users can build the request from scratch, because most of the identifiers it needs are already visible to them:
cmd_id: the format is<OwnerID>-<Incremental ID>.uid: the owner ID, visible to all members.board_id: the ID of the board where the button is created, visible to all members.board_name: the name of the board where the button is created, visible to all members.
The researcher also compared this with the Card Button automation, where the same scenario does not work, and with the other board button operations (viewing, creating, deleting, editing), which are restricted. The report says a similar restriction should exist for executing a board button.
Exploitation
Step 1: create the button as the owner
Log in as the owner of the board and create an automation board button, leaving the option ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON disabled.
Step 2: confirm the owner sees it
The button is visible on the owner's board.
Step 3: confirm other users do not
Log in as any other user, a normal member or another admin of the board, and the same button is not visible or accessible on their board.
Step 4: run the button with the other user's token
Send the run request with the X-Butler-Trello-Token of that other user. The response is a success and the automation button executes with the desired results, even though the button is not accessible from that user's board view.
The report does not reproduce the body of this request; the identifiers it carries are the ones listed above (cmd_id, uid, board_id, board_name), and the authentication is the X-Butler-Trello-Token header.
Step 5: compare with the card button
The same scenario does not work for an automation card button. The researcher created one as the owner, confirmed it was visible to the owner, and confirmed it was not visible to any other user in their board view. Running the card button automation with the cookies of any other user of the board, other than the owner who created it, returns either a 401 Unauthorized response or a 404 Not Found response. The report shows two cases: when run as a non-member or observer, and when run as a normal member or other admin.
Root cause
The report frames the problem as a missing authorisation check on the board button execution path. The restriction exists for the card button and for the other board button operations (viewing, creating, deleting, editing), but not for executing a board button. The server accepts a run request for a button that the requesting user cannot see, as long as the request carries that user's valid token and the identifiers of the button. Because cmd_id follows the predictable <OwnerID>-<Incremental ID> format and uid, board_id and board_name are visible to all members, an attacker does not need to have captured a previous request to construct a working one.
Impact
Any board member or admin can execute automation buttons belonging to the owner of the board, or to any other user who created the automation button. The button executes with the desired results, even though it is not accessible from the other users' boards. The researcher rates this as a privilege escalation: a lower-privileged board user performs an action reserved to the button's creator.
The report's own CVSS vector is:
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | CVSS: 5.4 (MEDIUM)
The platform records the severity as low, with a 300.00 USD bounty.
Fix
The report recommends two changes:
- Apply the same restriction to board buttons that already exists for card buttons and for the other board button features.
- Add a server side check to verify whether other users are performing any restricted actions.
The report does not state which change, if any, was implemented.
Variants to test
- Other automation types with a run endpoint. Create an automation as one user, then replay its run request with a second user's token. A positive result is a success response and the automation executing for the second user.
- Predictable command identifiers. Where identifiers follow a pattern such as
<OwnerID>-<Incremental ID>, enumerate nearby values with a low-privileged token. A positive result is any identifier that executes successfully without the caller having access to the button. - Sharing toggled off after capture. Capture a run request while sharing is enabled, have the owner disable sharing, then replay. A positive result is the request still succeeding after the restriction is applied.
- Role boundaries. Repeat the replay as an observer or non-member as well as a normal member and admin. A positive result is any role that should be denied receiving a success instead of 401 or 404.
- Sibling operations. Test viewing, creating, deleting and editing of the same object with the low-privileged token. A positive result is any of these succeeding where the interface hides the object, which would show the same missing check on other verbs.
What happened, in plain words
Trello is a website where teams organise work on boards made of cards. Butler for Trello is an add-on that lets you automate things on a board: you can set up rules, card buttons and board buttons that run commands for you. This report is about one of those automation types, the Board Button, and about the web address (endpoint) that runs it:
https://app.butlerfortrello.com/api/powerup-run-command
An endpoint is simply a specific address on a website that a program (rather than a person clicking around) sends a request to. Think of it as a service counter: you hand over a request at the counter and get an answer back. Here the counter is the one that runs a Butler command.
A Board Button can be set up in two ways. It can be local to the person who created it, or global to the whole board, meaning every member who has permission can see and run it. Whether other people are allowed to enable the button is controlled by an option labelled ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON. When the board owner creates an automation button and leaves that sharing option switched off, the button is supposed to be visible and runnable only by the owner. The researcher found that this restriction is not enforced when the button is run through the API.
The report was submitted on 10 Dec 2024 02:10:59 UTC against the target Butler for Trello, in the category Web App, classified under VRT as Broken Access Control (BAC) > Privilege Escalation, with priority P4. The researcher is TechyCodec08 and the disclosed bounty was 300.00 USD.
Two of those terms deserve a plain explanation. Broken Access Control means the site does not properly check who is allowed to do what: the door is there, but it is not locked. Privilege Escalation means someone with fewer rights manages to do something reserved for someone with more rights, like a regular employee using the manager's key. VRT is just a standard catalogue of weakness types used by bug bounty platforms to sort reports.
Setup
To reproduce the issue you need two roles:
- The owner of the board, who creates the automation button.
- Any other user of the board, such as a normal member or another admin, who should not be able to see or run that button.
The only tool the report relies on is the ability to capture and replay HTTP requests. HTTP is the language a browser and a website use to talk to each other; a request is the message your browser sends ("please show me this page" or "please run this command"), and a response is the reply. Capturing a request means recording that message so you can send it again later, possibly with small changes. Replaying means sending the recorded message again.
The precondition is a board button created by the owner with the sharing option ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON left disabled.
Finding it
The researcher started from how the feature is meant to behave. A board button created by the owner without the sharing option enabled is only visible and runnable by the owner. The researcher found that the restriction did not hold when the button was run through the API. The interface is what you see in the browser; the API is the set of service counters behind it. A restriction that is only drawn in the interface, and not checked at the counter, can be bypassed by talking to the counter directly. That is exactly what happened: sending the run request with the token of any other user still executed the button.
A token here is a short piece of text that proves who you are, a bit like a wristband at an event: show the right wristband and you are let in. The report uses the header X-Butler-Trello-Token for this. A header is an extra line attached to an HTTP request carrying information such as who is asking.
Two scenarios make the issue reachable:
- The owner had enabled the sharing option at some point, other users captured the request, and after the owner disabled sharing those users can still replay the request to run the button they are no longer allowed to run.
- Other users can build the request from scratch, because most of the identifiers it needs are already visible to them:
cmd_id: the format is<OwnerID>-<Incremental ID>.uid: the owner ID, visible to all members.board_id: the ID of the board where the button is created, visible to all members.board_name: the name of the board where the button is created, visible to all members.
An identifier (ID) is a unique label a system gives to a thing so it can be found again, like a customer number. cmd_id is the label of the command (the button). uid is the label of the user. board_id and board_name identify the board. The important point is that the command label is predictable: it is the owner's ID followed by a dash and a number that simply counts up. If you can guess the next number, you can guess the label, the same way you could guess a ticket number if tickets were handed out in order.
The researcher also compared this with the Card Button automation, where the same scenario does not work, and with the other board button operations (viewing, creating, deleting, editing), which are restricted. The report says a similar restriction should exist for executing a board button.
Exploitation
Step 1: create the button as the owner
Log in as the owner of the board and create an automation board button, leaving the option ANYONE IN WORKSPACE CAN ENABLE THIS BUTTON disabled. This sets up the situation under test: a button that is meant to be private to its creator.
Step 2: confirm the owner sees it
The button is visible on the owner's board. This is the expected behaviour and confirms the button exists and works for the person who made it.
Step 3: confirm other users do not
Log in as any other user, a normal member or another admin of the board, and the same button is not visible or accessible on their board. This confirms the interface is hiding the button from them, which is what the owner asked for.
Step 4: run the button with the other user's token
Send the run request with the X-Butler-Trello-Token of that other user. The response is a success and the automation button executes with the desired results, even though the button is not accessible from that user's board view. In other words, the interface said no, but the API said yes.
The report does not reproduce the body of this request. The identifiers it carries are the ones listed above (cmd_id, uid, board_id, board_name), and the authentication is the X-Butler-Trello-Token header. The body is the main content of an HTTP request, the part that carries the details of what you want done.
Step 5: compare with the card button
The same scenario does not work for an automation card button. The researcher created one as the owner, confirmed it was visible to the owner, and confirmed it was not visible to any other user in their board view. Running the card button automation with the cookies of any other user of the board, other than the owner who created it, returns either a 401 Unauthorized response or a 404 Not Found response. The report shows two cases: when run as a non-member or observer, and when run as a normal member or other admin.
A cookie is a small piece of data the website stores in your browser and sends back with each request, often used to remember that you are logged in. The two status codes are standard HTTP replies: 401 Unauthorized means "I do not know who you are, or you have not proved it", and 404 Not Found means "there is nothing here for you". Both are refusals, which is what should happen. The card button refuses; the board button does not.
Root cause
The report frames the problem as a missing authorisation check on the board button execution path. Authorisation is the part of a system that decides whether a known user is allowed to do a particular thing. Authentication proves who you are; authorisation decides what you may do. The restriction exists for the card button and for the other board button operations (viewing, creating, deleting, editing), but not for executing a board button. The server accepts a run request for a button that the requesting user cannot see, as long as the request carries that user's valid token and the identifiers of the button. Because cmd_id follows the predictable <OwnerID>-<Incremental ID> format and uid, board_id and board_name are visible to all members, an attacker does not need to have captured a previous request to construct a working one.
Server side means on the computer that runs the website, as opposed to in your browser. A check that only happens in the browser can be skipped by anyone who sends requests directly.
Impact
Any board member or admin can execute automation buttons belonging to the owner of the board, or to any other user who created the automation button. The button executes with the desired results, even though it is not accessible from the other users' boards. The researcher rates this as a privilege escalation: a lower-privileged board user performs an action reserved to the button's creator.
The report's own CVSS vector is:
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | CVSS: 5.4 (MEDIUM)
CVSS is a standard scoring system for the severity of a security flaw. The vector is a compact string of letters that records how the flaw was assessed: the attack can be done over the network, it is easy to carry out, it needs a logged-in low-privileged user, it needs no action from a victim, and it affects only the vulnerable component, with limited impact on confidentiality and integrity and none on availability. The resulting score is 5.4, which the report labels MEDIUM. The platform records the severity as low, with a 300.00 USD bounty.
Fix
The report recommends two changes:
- Apply the same restriction to board buttons that already exists for card buttons and for the other board button features.
- Add a server side check to verify whether other users are performing any restricted actions.
The report does not state which change, if any, was implemented.
Variants to test
- Other automation types with a run endpoint. Create an automation as one user, then replay its run request with a second user's token. A positive result is a success response and the automation executing for the second user.
- Predictable command identifiers. Where identifiers follow a pattern such as
<OwnerID>-<Incremental ID>, enumerate nearby values with a low-privileged token. A positive result is any identifier that executes successfully without the caller having access to the button. - Sharing toggled off after capture. Capture a run request while sharing is enabled, have the owner disable sharing, then replay. A positive result is the request still succeeding after the restriction is applied.
- Role boundaries. Repeat the replay as an observer or non-member as well as a normal member and admin. A positive result is any role that should be denied receiving a success instead of 401 or 404.
- Sibling operations. Test viewing, creating, deleting and editing of the same object with the low-privileged token. A positive result is any of these succeeding where the interface hides the object, which would show the same missing check on other verbs.
Glossary
- API: the set of addresses a website exposes so programs can send requests and get answers, separate from the pages a person clicks through in a browser.
- Authentication: proving who you are to a system, for example with a token or a login.
- Authorisation: the system's decision about what a known user is allowed to do.
- Board Button: a Butler automation on a Trello board that runs a command when triggered.
- Broken Access Control (BAC): a weakness where the system fails to check properly who may perform an action.
- Butler for Trello: the automation add-on for Trello that runs rules, card buttons and board buttons.
- Card Button: a Butler automation attached to a card rather than a whole board.
- Cookie: a small piece of data stored by the browser and sent with requests, often used to keep you logged in.
- CVSS: a standard scoring system for the severity of security flaws, expressed as a score and a vector string.
- Endpoint: a specific address on a server that accepts requests.
- Header: an extra line in an HTTP request or response carrying information such as identity or content type.
- HTTP: the protocol browsers and websites use to exchange requests and responses.
- Identifier (ID): a unique label a system gives to an object so it can be referred to.
- Privilege Escalation: a user with fewer rights managing to perform an action reserved for a user with more rights.
- Request: the message sent to a server asking it to do something.
- Response: the server's reply to a request, including a status code and content.
- Replay: sending a previously captured request again.
- Server side: happening on the server, as opposed to in the user's browser.
- Status code: a number in an HTTP response saying how the request went, such as 401 Unauthorized or 404 Not Found.
- Token: a piece of text that proves identity in a request, here sent in the
X-Butler-Trello-Tokenheader. - VRT: a standard catalogue of weakness types used to classify bug bounty reports.