Skip to content

SonarCloud API Test

ID: api-sonarcloud

Severity: info

Author: zzeitlin

Tags: token-spray,sonarcloud

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

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/token-spray/api-sonarcloud.yaml"

View on Github