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:
|
2023-10-14 11:27:55 +00:00
|
|
|
verified: true
|
2023-07-21 13:22:02 +00:00
|
|
|
max-request: 54
|
2023-07-21 12:57:11 +00:00
|
|
|
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:
|
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-07-21 12:57:11 +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-07-21 12:57:11 +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-07-21 12:57:11 +00:00
|
|
|
- "{{BaseURL}}/docu"
|
|
|
|
- "{{BaseURL}}/docs"
|
|
|
|
- "{{BaseURL}}/swagger"
|
|
|
|
- "{{BaseURL}}/api-doc"
|
2023-07-21 09:14:00 +00:00
|
|
|
- "{{BaseURL}}/doc/"
|
2020-10-15 16:46:02 +00:00
|
|
|
|
2023-07-21 12:57:11 +00:00
|
|
|
headers:
|
|
|
|
Accept: text/html
|
2021-09-02 11:59:10 +00:00
|
|
|
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
|
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})"
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a004630440220363f9fa90f7593719d6042d6456258c8fef035455e4245296e3687e1cb47f99602202444c5862646590736a24dd4cf313cf5c3a630296e28033b15f4445a19e6eee3:922c64590222798bb761d5b6d8e72950
|