nuclei-templates/miscellaneous/addeventlistener-detect.yaml

28 lines
903 B
YAML
Raw Normal View History

2021-06-28 12:14:46 +00:00
id: addeventlistener-detect
info:
name: DOM EventListener - Cross-Site Scripting
2022-02-04 18:15:48 +00:00
author: yavolo,dwisiswant0
2021-06-28 12:14:46 +00:00
severity: info
description: EventListener contains a cross-site scripting vulnerability via the document object model (DOM). An attacker can execute arbitrary script which can then allow theft of cookie-based authentication credentials and launch of other attacks.
reference:
- https://portswigger.net/web-security/dom-based/controlling-the-web-message-source
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cwe-id: CWE-79
2022-01-28 10:24:49 +00:00
tags: xss,misc
2021-06-28 12:14:46 +00:00
requests:
- method: GET
path:
2022-02-03 05:15:15 +00:00
- "{{BaseURL}}"
2021-06-28 12:14:46 +00:00
matchers:
2022-02-03 05:15:15 +00:00
- type: regex
2022-01-28 10:24:49 +00:00
part: body
2022-02-03 05:15:15 +00:00
regex:
2022-02-04 18:15:48 +00:00
- (([\w\_]+)\.)?add[Ee]vent[Ll]istener\(["']?[\w\_]+["']? # Test cases: https://www.regextester.com/?fam=121118
# Enhanced by md on 2022/09/19