Skip to content
XSS Write-up Intermediate

Auditing Atlassian Plugins, 53 0-Days Later

The blog post describes how Atlassian plugins, particularly macros, can introduce stored XSS vulnerabilities due to missing input validation and output sanitisation. An attacker could exploit these to perform actions on behalf of a victim, such as generating a personal access token or installing a malicious plugin.

cyllective Follow

Published on cyllective.com

02. Aug 2024, #web #cve #plugins #atlassian

cyllective AG, on cyllective.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the macro implementation fails to validate or sanitise user-controlled parameters before including them in HTML output.

Impact

An attacker could ride the victim's session to perform actions such as generating a personal access token, installing a malicious plugin, or upgrading their own account to admin, although the httpOnly cookie prevents direct session theft.

What the attacker needed

Victim interacts with malicious macro; attacker can insert macro with payload

How it was found

  1. Download an Atlassian plugin from the marketplace
  2. Decompile the .jar or .obr file to recover the plugin's source code and assets
  3. Look at the plugin descriptor to determine available module types and get an initial overview
  4. Run static analysis to find potential vulnerabilities
  5. Manually inspect the source code and review the static analysis output
  6. Once a vulnerability is suspected, install the plugin on a confluence test instance

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 write-up has not been written yet. The Original tab links to the source.

This post explains that some add-ons (plugins) for Atlassian products like Confluence can have security holes. Specifically, a feature called a macro can take user input and display it without cleaning it, allowing an attacker to insert malicious code that runs in other users' browsers. This is called stored cross-site scripting (XSS).

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by cyllective

View all

1 more disclosed report, best first.

More from Atlassian

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.