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

28 lines
509 B
YAML

id: api-github
info:
name: GitHub API Test
author: zzeitlin
severity: info
reference:
- https://docs.github.com/en/rest/reference/users
tags: token-spray,github
metadata:
max-request: 1
self-contained: true
http:
- method: GET
path:
- "https://api.github.com/user"
headers:
Authorization: Basic {{base64('user:' + token)}}
matchers:
- type: word
part: body
words:
- '"login":'
- '"avatar_url":'
condition: and