2021-06-28 12:14:46 +00:00
|
|
|
id: addeventlistener-detect
|
|
|
|
|
|
|
|
info:
|
2022-02-03 05:15:15 +00:00
|
|
|
name: DOM EventListener detection
|
2022-02-04 18:15:48 +00:00
|
|
|
author: yavolo,dwisiswant0
|
2021-06-28 12:14:46 +00:00
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://portswigger.net/web-security/dom-based/controlling-the-web-message-source
|
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
|