DoS via Playbook
A normal user could create a playbook whose template fields had no size limit, allowing a value of up to 50MB. Running that playbook made the server consume large amounts of computing resources, stop responding and crash, taking the application down for all users.
- Triaged in 30 hours
- Fixed in 47 days
- Paid in 2 days
- Disclosed after 3 months
Summary:
A normal user can create a playbook, that has some attributes like the run_summary_template, retrospective_template and description,that don't have any size check or validation, which allows an attacker to set an unlimited number of characters as their values.
In a production environment is possible to set up to 50MB of data, due to the default nginx configuration, as the run_summary_template value. The creation of the playbook for itself is not sufficient to trigger an DoS attack in the application, but once this playbook is executed(run) the server starts to consume a large amount of computing resources, which causes to the server to stop responding to users requests and ultimately leads to server crash.
This attack is even worst because after the application is restarted, its not possible to the user who created the playbook run to finish its execution via the Web Portal, because both the channel created by the playbook run, and the run dedicated management page, don't properly load, showing only a blank screen.
Steps To Reproduce:
- Log in as a normal user in the platform.
- Grab the user
MMAUTHTOKENauthentication token. - Generate the playbook payload, that contains 50000000(50MB) characters as the
run_summary_templateattribute value. Use F1893243 - Send the following
POSTrequest to theplugins/playbooks/api/v0/playbooksAPI endpoint:
curl -X POST "http://<domain>/plugins/playbooks/api/v0/playbooks" -H 'Content-Type: application/json' -d @payload --cookie "MMAUTHTOKEN=<user-auth-token>" -H "X-CSRF-TOKEN: <csrf-token>"
- Go to the playbooks page, and click on the newly created playbook.
- Click in the "Run" button and then set an name for the run.
- After the run is initiated, the server will start to consume an abnormal quantity of computing resources, and crashes after some seconds.
- The application becomes unavailable for all its users.
Supporting Material/References:
- PoC Video
Impact
A user can cause a full denial of service attack in the application server, making the application server unavailable to all its users.
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 playbook template and description fields were stored and processed without any length limit or validation, so an oversized value overwhelmed the server when the playbook was executed.
Impact
A normal user could make the application unavailable to all its users, and after a restart the affected run pages failed to load, leaving a blank screen.
What the attacker needed
A normal user account; ability to send API requests with a token
How it was found
- Log in as a normal user.
- Obtain the user's authentication token.
- Build a playbook payload with a very large run summary template value.
- Send a POST request to the playbooks API endpoint with that payload.
- Open the new playbook and start a run.
- Observe the server consuming abnormal resources and crashing.
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 playbook is a saved set of instructions the platform runs on demand. Its template fields accepted text of any length, so a user could store an enormous amount of text. When the playbook was run, the server consumed large amounts of computing resources and crashed, so nobody could use the site.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.