nuclei-templates/http/exposures/apis/swagger-api.yaml

103 lines
3.1 KiB
YAML
Raw Normal View History

2021-01-10 23:20:14 +00:00
id: swagger-api
2020-04-04 18:19:48 +00:00
info:
name: Public Swagger API - Detect
2022-03-11 12:37:33 +00:00
author: pdteam,c-sh0
2020-08-03 21:52:00 +00:00
severity: info
description: Public Swagger API was detected.
reference: https://swagger.io/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cvss-score: 0.0
cwe-id: CWE-200
2023-01-27 09:47:56 +00:00
metadata:
max-request: 53
2023-01-27 09:47:56 +00:00
verified: true
shodan-query: http.title:"swagger"
2021-04-06 06:46:11 +00:00
tags: exposure,api,swagger
2020-04-04 18:19:48 +00:00
http:
2020-04-04 18:19:48 +00:00
- method: GET
2020-05-25 08:13:15 +00:00
path:
2022-03-11 12:37:33 +00:00
- "{{BaseURL}}/swagger-ui/swagger-ui.js"
- "{{BaseURL}}/swagger/swagger-ui.js"
- "{{BaseURL}}/swagger-ui.js"
- "{{BaseURL}}/swagger/ui/swagger-ui.js"
2021-04-14 03:26:50 +00:00
- "{{BaseURL}}/swagger/ui/index"
2020-04-04 18:19:48 +00:00
- "{{BaseURL}}/swagger/index.html"
- "{{BaseURL}}/swagger-ui.html"
- "{{BaseURL}}/swagger/swagger-ui.html"
- "{{BaseURL}}/api/swagger-ui.html"
- "{{BaseURL}}/api-docs/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/api-docs/swagger.yaml"
2022-02-06 17:57:16 +00:00
- "{{BaseURL}}/api_docs"
2020-04-04 18:19:48 +00:00
- "{{BaseURL}}/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/swagger.yaml"
2020-04-04 18:19:48 +00:00
- "{{BaseURL}}/swagger/v1/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/swagger/v1/swagger.yaml"
2020-07-26 19:26:57 +00:00
- "{{BaseURL}}/api/index.html"
- "{{BaseURL}}/api/doc"
2020-07-26 19:26:57 +00:00
- "{{BaseURL}}/api/docs/"
- "{{BaseURL}}/api/swagger.json"
- "{{BaseURL}}/api/swagger.yaml"
- "{{BaseURL}}/api/swagger.yml"
- "{{BaseURL}}/api/swagger/index.html"
- "{{BaseURL}}/api/swagger/swagger-ui.html"
- "{{BaseURL}}/api/api-docs/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/api/api-docs/swagger.yaml"
2020-07-26 19:26:57 +00:00
- "{{BaseURL}}/api/swagger-ui/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/api/swagger-ui/swagger.yaml"
2020-07-26 19:26:57 +00:00
- "{{BaseURL}}/api/apidocs/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/api/apidocs/swagger.yaml"
2020-07-26 19:26:57 +00:00
- "{{BaseURL}}/api/swagger-ui/api-docs"
- "{{BaseURL}}/api/doc.json"
2020-07-26 19:26:57 +00:00
- "{{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/swagger.json"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/api/spec/swagger.yaml"
2020-07-26 19:26:57 +00:00
- "{{BaseURL}}/api/swagger/ui/index"
- "{{BaseURL}}/__swagger__/"
- "{{BaseURL}}/_swagger_/"
2021-02-11 21:08:09 +00:00
- "{{BaseURL}}/api/v1/swagger-ui/swagger.json"
- "{{BaseURL}}/api/v1/swagger-ui/swagger.yaml"
- "{{BaseURL}}/swagger-resources/restservices/v2/api-docs"
2022-02-06 14:27:54 +00:00
- "{{BaseURL}}/api/swagger_doc.json"
- "{{BaseURL}}/docu"
2023-01-27 09:09:41 +00:00
- "{{BaseURL}}/docs"
2023-02-27 14:23:20 +00:00
- "{{BaseURL}}/swagger"
- "{{BaseURL}}/api-doc"
2023-01-27 09:09:41 +00:00
headers:
Accept: text/html
2020-10-15 16:46:02 +00:00
stop-at-first-match: true
2020-10-15 16:46:02 +00:00
matchers-condition: and
2020-04-04 18:19:48 +00:00
matchers:
- type: word
2020-05-25 08:13:15 +00:00
words:
2021-02-11 21:08:09 +00:00
- "swagger:"
2021-04-14 03:26:50 +00:00
- "Swagger 2.0"
2020-04-04 18:19:48 +00:00
- "\"swagger\":"
- "Swagger UI"
- "loadSwaggerUI"
2021-02-23 12:14:36 +00:00
- "**token**:"
2023-01-27 09:09:41 +00:00
- "id=\"swagger-ui"
2020-04-04 18:19:48 +00:00
condition: or
2020-10-15 16:46:02 +00:00
- type: status
status:
2021-02-23 12:14:36 +00:00
- 200
2022-03-11 12:37:33 +00:00
extractors:
2022-03-13 13:04:50 +00:00
- type: regex
part: body
group: 1
regex:
- " @version (v[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})"