nuclei-templates/http/token-spray/api-fortitoken-cloud.yaml

34 lines
847 B
YAML
Raw Permalink Normal View History

2021-10-24 02:25:47 +00:00
id: api-fortitoken-cloud
info:
name: FortiToken Cloud API Test
author: dwisiswant0
severity: info
reference:
- https://docs.fortinet.com/document/fortitoken-cloud/latest/rest-api/456035/overview
metadata:
max-request: 1
tags: token-spray,fortinet,fortitoken
2021-10-24 02:25:47 +00:00
self-contained: true
2023-10-14 11:27:55 +00:00
http:
2021-10-24 02:25:47 +00:00
- method: GET
path:
- "https://ftc.fortinet.com:9696/api/v1/user"
2023-10-14 11:27:55 +00:00
2021-10-24 02:25:47 +00:00
headers:
Authorization: Bearer {{token}}
matchers-condition: and
2021-10-24 02:25:47 +00:00
matchers:
- type: status
status:
- 200
2021-10-24 02:25:47 +00:00
- type: regex
part: body
regex:
- "error_(code|message|name)"
negative: true
# digest: 4b0a00483046022100b941ba5540fd84be52dcc892b7005f435b823cee8147e0c9de774d149331c218022100d1799a31e630e29764cdd9353ee31446fd0dda945bdb7757975047ae9464b6af:922c64590222798bb761d5b6d8e72950