Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Create dom-xss.yaml #36

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions xss/dom-xss.yaml
Original file line number Diff line number Diff line change
@@ -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:
- "'\"><h1>{{num}}</h1>"

fuzzing:
- part: query
type: postfix
mode: single
fuzz:
- "{{reflection}}"

stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<h1>{{num}}</h1>"

- type: word
part: header
words:
- "text/html"

- type: status
status:
- 200