Malicious reinstallation of jsm widget app (installed by default in JSM) allows extracting private oauth tokens and user data
The JSM widget app's /installed endpoint did not validate the qsh claim of JWTs, allowing an attacker to reuse a JWT from the browser console to create a fake installation request and change the app's base URL. This let the attacker intercept requests from the widget app server to JSM cloud, capturing sensitive information and credentials.
- Accepted in 11 days
- Fixed in 15 days
- Disclosed after 2.2 years
Summary by Atlassian
Extracting private OAuth tokens and user data vulnerability in malicious reinstallation of JSM widget app
Summary by rjw
The JSM for cloud widget is implemented as an internal Atlassian connect app that was installed by default on Jira Service Management. Since it did not validate the qsh claim of JWT's on it's /installed endpoint, an attacker could take a JWT from the browser console and use it to create a fake installation request, changing the baseurl record inside the app.
This allowed the attacker to intercept requests intended to be sent back from the JSM widget app server to JSM cloud. This enabled the attacker to intercept sensitive information and credentials from the requests.
In my opinion, Atlassian did a great job of responding to this report and quickly implementing the fix in production. Additionally, they very quickly communicated this issue through the developer community.
See: https://community.developer.atlassian.com/t/action-required-atlassian-connect-vulnerability-allows-bypass-of-app-qsh-verification-via-context-jwts/47072/28 for more explanation on this issue.
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 /installed endpoint failed to verify the qsh claim in the JWT, so a token from another context could be replayed to alter the app's base URL.
Impact
The attacker could intercept sensitive information and credentials from requests between the widget app server and JSM cloud.
What the attacker needed
Access to a JWT from the browser console; JSM widget app installed (default)
The fix
The text says Atlassian quickly implemented the fix in production.
How it was found
- Obtain a JWT from the browser console.
- Send a fake installation request to the /installed endpoint using that JWT.
- Change the baseurl record inside the app to point to an attacker-controlled server.
- Intercept requests from the JSM widget app server to JSM cloud.
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 JWT is a token used to prove identity between services. The app checked that the token was valid but not that it was meant for this specific action (the qsh claim ties the token to a request). Because of that, an attacker could reuse a token they already had to trick the app into sending data to a server they controlled.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.