# Action required: Atlassian Connect vulnerability allows bypass of app qsh verification via context JWTs

**URL:** <https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072>\
**Category:** Announcements\
**Tags:** jwt, security, jira-cloud, atlassian-connect, confluence-cloud\
**Created:** [April 14, 2021, 3:02am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072 "2021-04-14T03:02:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![anton2](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/anton2/32/39888_2.png) [@anton2](https://community.developer.atlassian.com/u/anton2)\
**Post date:** [May 1, 2021, 8:32pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/21 "2021-05-01T20:32:00Z")

</div>

@HeyJoe if I update my app descriptor and its URL remains the same, I just have added a new parameter. Should I create a new version of my app in the Marketplace vendor management section? Or new descriptor will be automatically updated by Marketplace?

---

<div class="post-metadata">

**Author:** ![rmassaioli](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/rmassaioli/32/35834_2.png) [@rmassaioli](https://community.developer.atlassian.com/u/rmassaioli)\
**Post date:** [May 2, 2021, 11:00pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/22 "2021-05-02T23:00:01Z")

</div>

The Atlassian Marketplace should spot the difference, via polling your descriptor, and make a minor version bump. If that does not happen automatically then you can always perform the change manually.

---

<div class="post-metadata">

**Author:** ![MichaelRichardson](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MichaelRichardson](https://community.developer.atlassian.com/u/MichaelRichardson)\
**Post date:** [May 6, 2021, 2:49pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/23 "2021-05-06T14:49:10Z")

</div>

If I only received webhooks from JIRA after the installation do I only need to add the new field to my descriptor or must I validate the qsh I received in the webhook jwt?

If the requests I make to the JIRA rest API already contain a qsh in the jwt do I need to do anything more?

---

<div class="post-metadata">

**Author:** ![HeyJoe](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/heyjoe/32/39049_2.png) [@HeyJoe](https://community.developer.atlassian.com/u/HeyJoe)\
**Post date:** [May 7, 2021, 2:19am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/24 "2021-05-07T02:19:36Z")

</div>

Hi everyone,

Please note the update to this announcement dated today (May 7 2021) - If your app is using Atlassian Connect Spring Boot, please upgrade to Atlassian Connect Spring Boot 2.1.5 or later, 2.1.4 regressed on the fix introduced in 2.1.3.

Sorry for the confusion!

---

<div class="post-metadata">

**Author:** ![HeyJoe](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/heyjoe/32/39049_2.png) [@HeyJoe](https://community.developer.atlassian.com/u/HeyJoe)\
**Post date:** [May 7, 2021, 2:22am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/25 "2021-05-07T02:22:02Z")

</div>

> [@MichaelRichardson](#):
>
> If I only received webhooks from JIRA after the installation do I only need to add the new field to my descriptor or must I validate the qsh I received in the webhook jwt?
> 
> If the requests I make to the JIRA rest API already contain a qsh in the jwt do I need to do anything more?

Hi @MichaelRichardson ,

Because webhook requests to your app are signed with a JWT that includes a `qsh` claim, you must do both: Add the new field to your descriptor and validate the JWT including the `qsh` claim in your webhook request handler.

This vulnerability relates to authenticated JWT requests that Atlassian sends to your app, not authenticated JWT requests that your app sends to Atlassian.

---

<div class="post-metadata">

**Author:** ![jan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/jan/32/36708_2.png) [@jan](https://community.developer.atlassian.com/u/jan)\
**Post date:** [May 8, 2021, 12:54pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/26 "2021-05-08T12:54:04Z")

</div>

@HeyJoe - I just got alerted for this for a bitbucket cloud connect app. I made the fix and added it to the descriptor, and now I’m getting errors per email which looks like the bot is scanning for JIRA or Confluence cloud apps only? According to the documentation (which btw still does not mention apiMigrations), the proper scopes for bitbucket are account or repository.

```auto
The .json descriptor provided is invalid (/scopes/0: instance value ("repository") not found in enum
 (possible values: ["none","NONE","read","READ","write","WRITE","delete","DELETE","project_admin","PROJECT_ADMIN","space_admin","SPACE_ADMIN","admin","ADMIN","act_as_user","ACT_AS_USER","access_email_addresses","ACCESS_EMAIL_ADDRESSES"])). Check your descriptor and try again.
```

---

<div class="post-metadata">

**Author:** ![zsims](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/zsims/32/41907_2.png) [@zsims](https://community.developer.atlassian.com/u/zsims)\
**Post date:** [May 10, 2021, 10:29pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/27 "2021-05-10T22:29:01Z")

</div>

> [@HeyJoe](#):
>
> If your app is using Atlassian Connect Spring Boot, please upgrade to Atlassian Connect Spring Boot 2.1.5 or later, 2.1.4 regressed on the fix introduced in 2.1.3.

We’ve published a new CVE to cover Atlassian Connect Spring Boot 2.1.4: [NVD - CVE-2021-26077](https://nvd.nist.gov/vuln/detail/CVE-2021-26077)

If you’re using Atlassian Connect Spring Boot, please upgrade to 2.1.5 or greater as soon as possible.

---

<div class="post-metadata">

**Author:** ![hari](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/hari/32/41059_2.png) [@hari](https://community.developer.atlassian.com/u/hari)\
**Post date:** [May 10, 2021, 11:52pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/28 "2021-05-10T23:52:20Z")

</div>

@jan This issue does not impact Bitbucket cloud connect apps. We rolled out scanning for this vulnerability and mistakenly include bitbucket apps in the scan as well. If you received an AMS ticket for QSH vulns in your bitbucket cloud app, feel free to close those tickets as False Positive. We are also working on auto-closing them.

---

<div class="post-metadata">

**Author:** ![jan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/jan/32/36708_2.png) [@jan](https://community.developer.atlassian.com/u/jan)\
**Post date:** [May 11, 2021, 6:06am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/29 "2021-05-11T06:06:38Z")

</div>

So for now we should _not_ add the `apiMigrations` to Bitbucket Cloud apps at all? There’s some mixed message on it’s necessity.

The response from the descriptor check is more worrying to me, since that seems to be scanning Bitbucket Cloud descriptors with a Confluence Cloud validation.

---

<div class="post-metadata">

**Author:** ![Tricentis](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tricentis](https://community.developer.atlassian.com/u/Tricentis)\
**Post date:** [May 11, 2021, 9:54am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/30 "2021-05-11T09:54:58Z")

</div>

Do these changes affect Bamboo plugins?

---

<div class="post-metadata">

**Author:** ![remie](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/remie/32/34985_2.png) [@remie](https://community.developer.atlassian.com/u/remie)\
**Post date:** [May 11, 2021, 9:57am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/31 "2021-05-11T09:57:17Z")

</div>

No, they are only applicable to Cloud apps and there is no Cloud offering voor Bamboo

---

<div class="post-metadata">

**Author:** ![Tricentis](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tricentis](https://community.developer.atlassian.com/u/Tricentis)\
**Post date:** [May 11, 2021, 9:58am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/32 "2021-05-11T09:58:41Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Tricentis](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tricentis](https://community.developer.atlassian.com/u/Tricentis)\
**Post date:** [May 11, 2021, 10:27am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/33 "2021-05-11T10:27:02Z")

</div>

For Jira plugin, we are using this method to verify the JWT: **com.atlassian.jwt.core.reader.NimbusJwtReader#readAndVerify** in **jwt-core-2.0.2**. Has it taken care of the qsh validation already? If not, do we have to validate it using the **claims**? What is the implementation of **ComputeQSH**

Thanks

---

<div class="post-metadata">

**Author:** ![remie](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/remie/32/34985_2.png) [@remie](https://community.developer.atlassian.com/u/remie)\
**Post date:** [May 11, 2021, 11:14am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/34 "2021-05-11T11:14:16Z")

</div>

The JWT verification does not check the QSH. There is different logic involved, which you can check here: [Bitbucket](https://bitbucket.org/atlassian/atlassian-connect-spring-boot/src/master/atlassian-connect-spring-boot-jwt/src/main/java/com/atlassian/connect/spring/internal/jwt/HttpRequestCanonicalizer.java)

---

<div class="post-metadata">

**Author:** ![Tricentis](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tricentis](https://community.developer.atlassian.com/u/Tricentis)\
**Post date:** [May 11, 2021, 11:22am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/35 "2021-05-11T11:22:28Z")

</div>

And do we have to validate it or it is optional? Thanks.

---

<div class="post-metadata">

**Author:** ![remie](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/remie/32/34985_2.png) [@remie](https://community.developer.atlassian.com/u/remie)\
**Post date:** [May 11, 2021, 12:16pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/36 "2021-05-11T12:16:28Z")

</div>

Euhm… well… I mean… it’s your responsibility to create a secure environment. The QSH allows you to validate that the request was not just coming from Atlassian, but that it was also specific for that endpoint.

I guess it depends: if you want to participate in the Cloud Security Program, I think you should validate the QSH where applicable, as I would consider the ability to make a valid request with an invalid QSH a proper security vulnerability when reported in the Bug Bounty program. Which means that you will have to fix it, and pay out the bounty.

If you do not wish to participate in this program, I guess you are allowed to ignore it.

---

<div class="post-metadata">

**Author:** ![Luis2](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Luis2](https://community.developer.atlassian.com/u/Luis2)\
**Post date:** [May 11, 2021, 8:01pm UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/37 "2021-05-11T20:01:27Z")

</div>

Sorry, I’m confused here; we have a custom implementation of Bitbucket Cloud in which we have the descriptor in a public URL so the app can be installed, and also we get a post-install callback from Bitbucket with the signed jwt (which we validate using the shared secret). Is the change described in this article relevant to Bitbucket?

If I try to add the apiMigrations in the descriptor, we get the error message saying that `apiMigrations` is not allowed, and using context-qsh in contexts array will cause the installation to fail.

![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/d/2/d2624abac5c3d5b42c35ad5857090fb46ea91f13.png)

Note: I see that the JWT we get from Bitbucket does contain the qsh claims; besides adding extra validation on the qsh claims, is there something else we need to change? and, do we need to make changes to the descriptor at all?

---

<div class="post-metadata">

**Author:** ![HeyJoe](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/heyjoe/32/39049_2.png) [@HeyJoe](https://community.developer.atlassian.com/u/HeyJoe)\
**Post date:** [May 12, 2021, 1:43am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/38 "2021-05-12T01:43:57Z")

</div>

@Luis2 this vulnerability does not affect Bitbucket Cloud apps. If you received a vulnerability notification for your Bitbucket Cloud app, it was raised in error and can be closed as a false positive.

---

<div class="post-metadata">

**Author:** ![Tricentis](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tricentis](https://community.developer.atlassian.com/u/Tricentis)\
**Post date:** [May 12, 2021, 2:42am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/39 "2021-05-12T02:42:44Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![abubakarazeem](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@abubakarazeem](https://community.developer.atlassian.com/u/abubakarazeem)\
**Post date:** [May 12, 2021, 7:48am UTC](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/40 "2021-05-12T07:48:16Z")

</div>

Do i need to update atlassian-connect-express ( **ACE** ) as well? currently i’m using version 3.0.2.

[Previous page](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072.md?page=1)

[Next page](https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072.md?page=3)
