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

111 lines
3.2 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:
2023-07-21 12:57:11 +00:00
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
2023-07-21 12:57:11 +00:00
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
cwe-id: CWE-200
metadata:
verified: true
max-request: 59
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
2023-07-21 12:57:11 +00:00
http:
2020-04-04 18:19:48 +00:00
- method: GET
2020-05-25 08:13:15 +00:00
path:
- "{{BaseURL}}{{paths}}"
payloads:
paths:
- "/swagger-ui/swagger-ui.js"
- "/swagger/swagger-ui.js"
- "/swagger-ui.js"
- "/swagger/ui/swagger-ui.js"
- "/swagger/ui/index"
- "/swagger/index.html"
- "/swagger-ui.html"
- "/swagger/swagger-ui.html"
- "/api/swagger-ui.html"
- "/api-docs/swagger.json"
- "/api-docs/swagger.yaml"
- "/api_docs"
- "/swagger.json"
- "/swagger.yaml"
- "/swagger/v1/swagger.json"
- "/swagger/v1/swagger.yaml"
- "/api/index.html"
- "/api/doc"
- "/api/docs/"
- "/api/swagger.json"
- "/api/swagger.yaml"
- "/api/swagger.yml"
- "/api/swagger/index.html"
- "/api/swagger/swagger-ui.html"
- "/api/api-docs/swagger.json"
- "/api/api-docs/swagger.yaml"
- "/api/swagger-ui/swagger.json"
- "/api/swagger-ui/swagger.yaml"
- "/api/apidocs/swagger.json"
- "/api/apidocs/swagger.yaml"
- "/api/swagger-ui/api-docs"
- "/api/doc.json"
- "/api/api-docs"
- "/api/apidocs"
- "/api/swagger"
- "/api/swagger/static/index.html"
- "/api/swagger-resources"
- "/api/swagger-resources/restservices/v2/api-docs"
- "/api/__swagger__/"
- "/api/_swagger_/"
- "/api/spec/swagger.json"
- "/api/spec/swagger.yaml"
- "/api/swagger/ui/index"
- "/__swagger__/"
- "/_swagger_/"
- "/api/v1/swagger-ui/swagger.json"
- "/api/v1/swagger-ui/swagger.yaml"
- "/swagger-resources/restservices/v2/api-docs"
- "/api/swagger_doc.json"
- "/docu"
- "/docs"
- "/swagger"
- "/api-doc"
- "/doc/"
- "/swagger-ui/springfox.js"
- "/swagger-ui/swagger-ui-standalone-preset.js"
- "/swagger-ui/swagger-ui/swagger-ui-bundle.js"
- "/webjars/swagger-ui/swagger-ui-bundle.js"
- "/webjars/swagger-ui/index.html"
2023-07-21 12:57:11 +00:00
headers:
Accept: text/html
stop-at-first-match: true
2023-10-14 11:27:55 +00:00
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"
2023-07-21 12:57:11 +00:00
- "loadSwaggerUI"
2021-02-23 12:14:36 +00:00
- "**token**:"
2023-07-21 12:57:11 +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})"
# digest: 4a0a0047304502206e693dd212a261c994aed1e1317abc0b7b6e066aebae42a1833ebf5086da5056022100d956be945d5c2b5fa96ea2ed37884f0b381e071abece12f73f2fba78e2dbf95c:922c64590222798bb761d5b6d8e72950