Skip to content
RCE Disclosed report Intermediate

Atlassian Companion 1.2.2 - Remote Code Execution

The Atlassian Companion desktop app blocked a list of dangerous file extensions but still allowed others such as .msi, .lnk, .chm and .hta on Windows and .terminal on macOS, which can run commands when opened. An attacker could force the app to open one of these unsafe file types, leading to remote code execution.

matt Follow

Originally disclosed on Bugcrowd

Bounty$600 Medium View original
  • Accepted in 23 hours
  • Fixed in 44 days
  • Disclosed after 2.8 years

Summary by Atlassian

Remote code execution vulnerability in Atlassian Companion

Summary by matt

Atlassian Companion is a desktop app that lets you edit files with a program on your computer, then easily re-upload them to Confluence. The Atlassian Companion app hosts a local websocket server to communicate with the page.

The Confluence site sends the extension to the local app to determine what application to open for editing.

For windows the following is blocked: .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc;.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc

However the following extensions are allowed and can execute arbitrary commends when opened: Window: .msi, lnk, chm, hta MacOs: .terminal file. (this is a setting file for the terminal that has a section for a startup script). Other file types like pkg, tool, term, will also work.

It was possible to force the application to open one of these unsafe file types, resulting in remote code execution.

The original report as published on Bugcrowd, by Atlassian. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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 a blocklist approach that only denied a fixed set of executable extensions while allowing other file types that can also execute code when opened.

Impact

An attacker could achieve remote code execution on a victim's machine by getting the Companion app to open a crafted unsafe file type.

What the attacker needed

Atlassian Companion installed; Victim opens a crafted file via Companion

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.

Atlassian Companion is a small helper program that opens files for you when you edit them in Confluence. It tried to stop dangerous file types from opening, but its list of blocked types was incomplete, so some file types that can run commands were still allowed. If an attacker can make the app open one of those files, their code runs on your computer.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by matt

View all

2 more disclosed reports, 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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.