# Automation for Jira allows unauthenticated install with same cloudId - leading to unrecoverable DOS by any logged in user 

Unauthenticated POST to Automation for Jira's install webhook with a victim cloudId overwrote the shared secret, causing permanent 403 DoS for that site.

- Payout: $1,200
- Severity: medium
- Program: Atlassian
- Found by: rjw
- Disclosed: 2021-07-10
- Write-up quality: 7/10
- Original: https://bugcrowd.com/disclosures/bdd81798-1fed-4f4e-8178-4e6cef9bb828/automation-for-jira-allows-unauthenticated-install-with-same-cloudid-leading-to-unrecoverable-dos-by-any-logged-in-user
- Library page: https://bugbountylibrary.com/r/bc%3Aad3389b8-17eb-45df-a352-19502557e238
- Tags: area:web domain:web impact:dos kind:bounty platform:bugcrowd sev:medium tech:jwt technique:default-creds technique:recon vuln:auth-bypass vuln:dos vuln:misconfiguration

**Target:** Atlassian Connect lifecycle webhook /pro/rest/lifecycle/installed on automation.atlassian.com
**Root cause:** The install webhook accepted an undocumented cloudId parameter and, without authentication, overwrote the existing shared secret record for any matching cloud site.
**Steps:**
1. Obtain victim cloudId (e.g. from admin.atlassian.com URL for a site you admin, or via support.atlassian.com info leak).
2. POST to `https://automation.atlassian.com/pro/rest/lifecycle/installed` with JSON body containing `key`, `clientKey`=cloudId, `cloudId`=cloudId, attacker-chosen `sharedSecret`, `baseUrl`, `displayUrl`, `productType`, `eventType:"installed"`.
3. Observe response `"INSTALLED OK"` confirming secret override.
4. All subsequent legitimate requests from the victim instance to automation.atlassian.com return 403, breaking Automation entirely.
**How found:** Verbose error message `CloudId is a required field.` on the install endpoint revealed the undocumented cloudId parameter, prompting testing of whether it could target existing sites unauthenticated.
**Exploitation:** Attacker needs only a victim cloudId (obtainable without extra vulns for own sites, or via a separate support.atlassian.com leak). A single unauthenticated POST overwrites the shared secret, invalidating the real integration's JWT signing and permanently 403-ing all Automation traffic for that cloud site.
**Escalation:** Global DoS potential since any cloudId could be targeted; unrecoverable without Atlassian intervention.
**Insight:** Probe Connect/lifecycle install webhooks for undocumented identity params (cloudId, clientKey) and test whether supplying an existing tenant's identifier lets you overwrite its shared secret without auth; verbose validation errors often name the exact parameter to try.

## Proof of concept (copied exactly from the original report)

**Unauthenticated curl POST overriding cloudId shared secret**

```
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"
 }'
```

