Skip to content

Instantly share code, notes, and snippets.

@kannthu
Created August 10, 2022 10:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kannthu/ea8d27306fde98f1380f1308370d1ff4 to your computer and use it in GitHub Desktop.
Save kannthu/ea8d27306fde98f1380f1308370d1ff4 to your computer and use it in GitHub Desktop.
id: swagger-ui
info:
name: Swagger UI
author: vidocsecurity
severity: low
description: Swagger UI exposes information about endpoints and sometimes it is vulnerable tu XSS
tags: swagger-ui,exposure
requests:
- method: "GET"
path:
- '{{BaseURL}}/'
- '{{BaseURL}}/index.html'
- '{{BaseURL}}/swagger-ui'
- '{{BaseURL}}/api/'
- '{{BaseURL}}/docs/'
- '{{BaseURL}}/idm/v2/api-docs'
- '{{BaseURL}}/docs/api-reference'
- '{{BaseURL}}/swaggerui'
- '{{BaseURL}}/api/help'
- '{{BaseURL}}/doc'
- '{{BaseURL}}/api-reference'
- '{{BaseURL}}/swagger/docs/v1'
- '{{BaseURL}}/reference'
- '{{BaseURL}}/swagger/ui/index'
- '{{BaseURL}}/swagger/index.html'
- '{{BaseURL}}/swagger-ui.html'
- '{{BaseURL}}/swagger/swagger-ui.html'
- '{{BaseURL}}/api/swagger-ui.html'
- '{{BaseURL}}/api-docs/'
- '{{BaseURL}}/api/index.html'
- '{{BaseURL}}/api/docs/'
- '{{BaseURL}}/api/swagger/index.html'
- '{{BaseURL}}/api/swagger/swagger-ui.html'
- '{{BaseURL}}/api/swagger-ui/api-docs'
- '{{BaseURL}}/api/api-docs'
- '{{BaseURL}}/api/apidocs'
- '{{BaseURL}}/api/swagger'
- '{{BaseURL}}/api/swagger/static/index.html'
- '{{BaseURL}}/api/swagger-resources'
- '{{BaseURL}}/api/swagger-resources/restservices/v2/api-docs'
- '{{BaseURL}}/api/__swagger__/'
- '{{BaseURL}}/api/_swagger_/'
- '{{BaseURL}}/api/spec'
- '{{BaseURL}}/api/swagger/ui/index'
- '{{BaseURL}}/__swagger__/'
- '{{BaseURL}}/api/v2/doc'
- '{{BaseURL}}/api/v1/'
- '{{BaseURL}}/api/v1/doc'
- '{{BaseURL}}/_swagger_/'
- '{{BaseURL}}/swagger-resources/restservices/v2/api-docs'
- '{{BaseURL}}/classicapi/doc/'
- '{{BaseURL}}/api/v1/openapi'
redirects: true
max-redirects: 3
matchers-condition: and
matchers:
- type: word
part: body
condition: and
words:
- "Swagger UI"
- type: status
condition: and
status:
- 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment