nuclei-templates/http/token-spray/api-segment.yaml

30 lines
578 B
YAML

id: api-segment
info:
name: Segment API Test
author: geeknik
severity: info
reference:
- https://reference.segmentapis.com/
metadata:
max-request: 1
tags: token-spray,segment
self-contained: true
http:
- raw:
- |
GET https://platform.segmentapis.com/v1beta/workspaces/myworkspace HTTP/1.1
Host: platform.segmentapis.com
Authorization: Bearer {{token}}
Content-Type: application/json
matchers:
- type: word
part: body
words:
- '"name":'
- '"id"'
condition: and