Atlassian Jira CSRF Protections Bypass Vulnerability
Jira's CSRF protection uses a double-submit cookie pattern, allowing any subdomain of the same parent domain to set the CSRF token cookie to a known value. An attacker controlling a subdomain could then forge requests on behalf of a logged-in user.
Originally disclosed on Cisco Talos
An exploitable CSRF vulnerability exists in Atlassian Jira 7.6.4. An attacker controlling a subdomain different that the Jira hosting subdomain enables cookie injection and control of the CSRF header token.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 use of the Double Submit Cookie pattern for CSRF protection, where the token is stored in a cookie that can be set by any subdomain of the parent domain.
Impact
An attacker could perform CSRF attacks on behalf of a logged-in user, potentially leading to unauthorized actions, but the attack requires the victim to be logged in and to visit a malicious page.
What the attacker needed
Attacker controls a subdomain of the same parent domain; victim is logged in to Jira; victim visits attacker-controlled page or link; attacker knows the deployment identifier
The fix
The vulnerability was fixed by the vendor, likely by changing the CSRF protection mechanism to not rely on a cookie that can be set by subdomains.
How it was found
- Attacker controls a subdomain of the same parent domain as the Jira instance.
- Attacker sets the atlassian.xsrf.token cookie for the parent domain to a chosen value.
- Attacker obtains the unique deployment identifier (available to unauthenticated users).
- Attacker crafts a CSRF request to the Jira instance with the atl_token parameter set to the known cookie value.
- The request is accepted because the cookie and parameter match, bypassing CSRF protection.
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.
CSRF (Cross-Site Request Forgery) is when a malicious site tricks a logged-in user's browser into sending a request to another site, like changing their password. Jira tried to prevent this by using a cookie that the attacker cannot read, but because any subdomain can set cookies for the whole domain, an attacker can overwrite that cookie with a value they know. Then they can make the request with the matching token and bypass the protection.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.