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

27 lines
692 B
YAML
Raw Normal View History

2021-10-01 14:33:51 +00:00
id: api-sonarcloud
info:
name: SonarCloud API Test
author: zzeitlin
severity: info
reference:
- https://sonarcloud.io/web_api/api/authentication
metadata:
max-request: 1
2023-10-14 16:57:55 +05:30
tags: token-spray,sonarcloud
2021-10-01 14:33:51 +00:00
2021-10-20 14:16:18 +05:30
self-contained: true
2023-10-14 16:57:55 +05:30
http:
2021-10-01 14:33:51 +00:00
- method: GET
path:
- "https://sonarcloud.io/api/authentication/validate"
2023-10-14 16:57:55 +05:30
2021-10-01 14:33:51 +00:00
headers:
Authorization: Basic {{base64(token + ':')}}
matchers:
- type: word
part: body
words:
2021-11-02 10:49:21 +05:30
- '{"valid": true}'
2024-12-01 13:57:55 +00:00
# digest: 4b0a00483046022100da74524fb3567f1f11487843947080f373dadf35d9eace4b972439a40837424502210098ec42527359eb978bb6330e0607db5e27b44f254b1084b6e80e3ccc56f47496:922c64590222798bb761d5b6d8e72950