2021-06-28 12:14:46 +00:00
id : addeventlistener-detect
info :
2022-09-21 21:42:27 +00:00
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
2022-09-21 21:42:27 +00:00
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.
2022-04-22 10:38:41 +00:00
reference :
- https://portswigger.net/web-security/dom-based/controlling-the-web-message-source
2022-09-21 21:42:27 +00:00
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
2022-09-21 21:42:27 +00:00
# Enhanced by md on 2022/09/19