id: CVE-2015-8399

info:
  name: Atlassian Confluence <5.8.17 - Information Disclosure
  author: princechaddha
  severity: medium
  description: Atlassian Confluence before 5.8.17 contains an information disclsoure vulnerability. A remote authenticated user can read configuration files via the decoratorName parameter to (1) spaces/viewdefaultdecorator.action or (2) admin/viewdefaultdecorator.action.
  impact: |
    An attacker can exploit this vulnerability to gain access to sensitive information.
  remediation: |
    Upgrade to a version higher than 5.8.17 to mitigate the vulnerability.
  reference:
    - https://jira.atlassian.com/browse/CONFSERVER-39704?src=confmacro
    - https://www.exploit-db.com/exploits/39170/
    - https://nvd.nist.gov/vuln/detail/CVE-2015-8399
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 4.3
    cve-id: CVE-2015-8399
    cwe-id: CWE-200
    epss-score: 0.93251
    epss-percentile: 0.99811
    cpe: cpe:2.3:a:atlassian:confluence:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: atlassian
    product: confluence
    shodan-query:
      - http.component:"Atlassian Confluence"
      - cpe:"cpe:2.3:a:atlassian:confluence"
      - http.component:"atlassian confluence"
  tags: cve2015,cve,edb,atlassian,confluence,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/spaces/viewdefaultdecorator.action?decoratorName"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "confluence-init.properties"
          - "View Default Decorator"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a004830460221009ef79c4e76bba94407ab69fc8c20d3c32943aaff7f0c28f67e4f877c431c42f6022100f33e17c69ad224dbcd245fefdd440f76ad9e397f23770e891bde132dd02a5583:922c64590222798bb761d5b6d8e72950