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

26 lines
496 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
metadata:
max-request: 1
self-contained: true
http:
- method: GET
path:
- "https://sonarcloud.io/api/authentication/validate"
headers:
Authorization: Basic {{base64(token + ':')}}
matchers:
- type: word
part: body
words:
- '{"valid": true}'