20 lines
479 B
YAML
20 lines
479 B
YAML
id: addeventlistener-detect
|
|
|
|
info:
|
|
name: DOM EventListener detection
|
|
author: yavolo,dwisiswant0
|
|
severity: info
|
|
tags: xss,misc
|
|
reference: https://portswigger.net/web-security/dom-based/controlling-the-web-message-source
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- (([\w\_]+)\.)?add[Ee]vent[Ll]istener\(["']?[\w\_]+["']? # Test cases: https://www.regextester.com/?fam=121118
|