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:
|
2024-03-23 09:28:19 +00:00
|
|
|
verified: true
|
2024-03-04 08:20:22 +00:00
|
|
|
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:
|
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/"
|
2023-11-22 08:12:29 +00:00
|
|
|
- "{{BaseURL}}/swagger-ui/springfox.js"
|
|
|
|
- "{{BaseURL}}/swagger-ui/swagger-ui-standalone-preset.js"
|
|
|
|
- "{{BaseURL}}/swagger-ui/swagger-ui/swagger-ui-bundle.js"
|
2024-02-05 01:57:15 +00:00
|
|
|
- "{{BaseURL}}/webjars/swagger-ui/swagger-ui-bundle.js"
|
|
|
|
- "{{BaseURL}}/webjars/swagger-ui/index.html"
|
2023-11-23 13:39:16 +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})"
|
2024-03-25 11:57:16 +00:00
|
|
|
# digest: 490a00463044022017f9edf2341c7ba50b09988e71e34d8d70f220ae4fe3bceede3c0d5a1fa3a4c002205ce5aea291fc4f93d26f3feaef6eff72832b39cf6f5b28fb1aa3f5d49d766898:922c64590222798bb761d5b6d8e72950
|