mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-03 01:03:34 +08:00
27 lines
692 B
YAML
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 |