nuclei-templates/apis/square.yaml

28 lines
729 B
YAML

id: api-square
info:
name: Square API Test
author: zzeitlin
reference: https://developer.squareup.com/explorer/square/locations-api/list-locations
severity: info
tags: api,square
requests:
- method: GET
payloads:
token: token.txt
path:
- "https://connect.squareup.com/v2/locations"
- "https://connect.squareupsandbox.com/v2/locations"
redirects: false
headers:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Content-Type: application/json
Authorization: Bearer {{token}}
matchers:
- type: word
part: body
words:
- 'errors'
negative: true