2021-01-10 23:20:14 +00:00
|
|
|
id: swagger-api
|
2020-04-04 18:19:48 +00:00
|
|
|
|
|
|
|
info:
|
2023-02-05 16:26:16 +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-02-05 17:26:56 +00:00
|
|
|
description: Public Swagger API was detected.
|
2023-02-05 16:26:16 +00:00
|
|
|
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:
|
2023-04-28 08:11:21 +00:00
|
|
|
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
|
|
|
|
2023-04-27 04:28:59 +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"
|
2023-01-25 10:37:21 +00:00
|
|
|
- "{{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"
|
2023-01-25 10:37:21 +00:00
|
|
|
- "{{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"
|
2020-10-15 10:03:03 +00:00
|
|
|
- "{{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"
|
2020-10-15 10:03:03 +00:00
|
|
|
- "{{BaseURL}}/swagger-resources/restservices/v2/api-docs"
|
2022-02-06 14:27:54 +00:00
|
|
|
- "{{BaseURL}}/api/swagger_doc.json"
|
2023-01-25 10:37:21 +00:00
|
|
|
- "{{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
|
|
|
|
2021-09-02 11:59:10 +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"
|
2023-01-25 10:37:21 +00:00
|
|
|
- "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
|
2020-10-15 18:50:12 +00:00
|
|
|
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})"
|