nuclei-templates/token-spray/api-sonarcloud.yaml

23 lines
463 B
YAML

id: api-sonarcloud
info:
name: SonarCloud API Test
author: zzeitlin
severity: info
reference: https://sonarcloud.io/web_api/api/authentication
tags: token-spray,sonarcloud
self-contained: true
requests:
- method: GET
path:
- "https://sonarcloud.io/api/authentication/validate"
headers:
Authorization: Basic {{base64(token + ':')}}
matchers:
- type: word
part: body
words:
- '{"valid": true}'