id: addeventlistener-detect info: name: DOM EventListener detection author: yavolo,dwisiswant0 severity: info reference: - https://portswigger.net/web-security/dom-based/controlling-the-web-message-source tags: xss,misc 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