Files
nuclei-templates/http/token-spray/api-sonarcloud.yaml
2024-12-01 13:57:55 +00:00

27 lines
692 B
YAML

id: api-sonarcloud
info:
name: SonarCloud API Test
author: zzeitlin
severity: info
reference:
- https://sonarcloud.io/web_api/api/authentication
metadata:
max-request: 1
tags: token-spray,sonarcloud
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}'
# digest: 4b0a00483046022100da74524fb3567f1f11487843947080f373dadf35d9eace4b972439a40837424502210098ec42527359eb978bb6330e0607db5e27b44f254b1084b6e80e3ccc56f47496:922c64590222798bb761d5b6d8e72950