What was the issue?
A server-side template injection (SSTI) vulnerability in Atlassian Confluence's Widget Connector macro allowed an attacker to supply a malicious template path, leading to path traversal and remote code execution. The author used Google dorks to find vulnerable Confluence instances and reported them to over 50 companies.
medium.com
Published on medium.com
Long story short, I have created my Hackerone/Bugcrowd profiles a way back in 2016 but I have never reported a bug there. I have never thought of doing a bug hunting but this vulnerability has made me do it.
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
The Widget Connector macro allowed user-supplied parameters, including a template path, to be passed to the template rendering engine without proper sanitisation, enabling path traversal and template injection.
Impact
An attacker could achieve path traversal and remote code execution on vulnerable Confluence servers, potentially compromising sensitive data and systems.
What the attacker needed
Vulnerable Confluence Server; network access to the server; Referer header set
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.
Confluence is a tool for team collaboration. A feature that embeds videos from sites like YouTube could be tricked into running harmful code on the server. This let attackers read files or take control of the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.