module

Atlassian Confluence Widget Connector Macro Velocity Template Injection

Disclosed
Mar 25, 2019
Created
Apr 22, 2019

Description

Widget Connector Macro is part of Atlassian Confluence Server and Data Center that
allows embed online videos, slideshows, photostreams and more directly into page.
A _template parameter can be used to inject remote Java code into a Velocity template,
and gain code execution. Authentication is unrequired to exploit this vulnerability.
By default, Java payload will be used because it is cross-platform, but you can also
specify which native payload you want (Linux or Windows).

Confluence before version 6.6.12, from version 6.7.0 before 6.12.3, from version
6.13.0 before 6.13.3 and from version 6.14.0 before 6.14.2 are affected.

This vulnerability was originally discovered by Daniil Dmitriev
https://twitter.com/ddv_ua.

Authors

Daniil Dmitriev
Dmitry (rrock) Shchannikov

Platform

Java,Linux,Windows

Architectures

java, x86

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/http/confluence_widget_connector
msf exploit(confluence_widget_connector) > show targets
...targets...
msf exploit(confluence_widget_connector) > set TARGET < target-id >
msf exploit(confluence_widget_connector) > show options
...show and set options...
msf exploit(confluence_widget_connector) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.