Skip to content

GitHub API Test

ID: api-github

Severity: info

Author: zzeitlin

Tags: token-spray,github

id: api-github
info:
name: GitHub API Test
author: zzeitlin
severity: info
reference:
- https://docs.github.com/en/rest/reference/users
metadata:
max-request: 1
tags: token-spray,github
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
# digest: 4a0a00473045022100fecb8aac52dc371cae6d56a8451740f0f8f4171e3020c3f869836864e60f51f20220143c0471ce7c29b770f694fc69149f041009bdd980a8cdbef609d6989e8cf04f: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-github.yaml"

View on Github