diff --git a/xss/dom-xss.yaml b/xss/dom-xss.yaml new file mode 100644 index 0000000..f01edc6 --- /dev/null +++ b/xss/dom-xss.yaml @@ -0,0 +1,45 @@ +id: dom-xss + +info: + name: DOM Cross Site Scripting + author: theamanrawat + severity: medium + tags: xss,dom,dast + +variables: + num: "{{rand_int(10000, 99999)}}" + +headless: + - steps: + - action: navigate + args: + url: "{{BaseURL}}" + - action: waitload + + payloads: + reflection: + - "'\">

{{num}}

" + + fuzzing: + - part: query + type: postfix + mode: single + fuzz: + - "{{reflection}}" + + stop-at-first-match: true + matchers-condition: and + matchers: + - type: word + part: body + words: + - "

{{num}}

" + + - type: word + part: header + words: + - "text/html" + + - type: status + status: + - 200