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.
Published on cyllective.com
02. Aug 2024, #web #cve #plugins #atlassian
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
- Download an Atlassian plugin from the marketplace
- Decompile the .jar or .obr file to recover the plugin's source code and assets
- Look at the plugin descriptor to determine available module types and get an initial overview
- Run static analysis to find potential vulnerabilities
- Manually inspect the source code and review the static analysis output
- 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.