nuclei-templates/http/exposures/tokens/github/github-refresh.yaml

29 lines
940 B
YAML

id: github-refresh
info:
name: GitHub Refresh Token
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/github.yml
- https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github
- https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps
- https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/
metadata:
verified: true
max-request: 1
tags: github,refresh,token,exposure
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- '\b(ghr_[a-zA-Z0-9]{76})\b'
# digest: 490a0046304402207e6f5bfb239879e57d6ef8274e2fccfae5663fcfe7d5c28caa808bb9e2bd91db02203f449825df0ad90a706839008ac3527ce522a661df7dcfc4d6d8fe9f654f1ab1:922c64590222798bb761d5b6d8e72950