Skip to content
CSRF Advisory Intermediate CVE-2019-14998

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.

Ben Taylor Follow

Originally disclosed on Cisco Talos

Medium 5.4 View original

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.

Ben Taylor, on Cisco Talos

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

  1. Attacker controls a subdomain of the same parent domain as the Jira instance.
  2. Attacker sets the atlassian.xsrf.token cookie for the parent domain to a chosen value.
  3. Attacker obtains the unique deployment identifier (available to unauthenticated users).
  4. Attacker crafts a CSRF request to the Jira instance with the atl_token parameter set to the known cookie value.
  5. 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.

More by Ben Taylor

View all

7 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.