Skip to content

GitHub OAuth Access Token

ID: github-oauth-access

Severity: info

Author: DhiyaneshDK

Tags: github,oauth,token,exposure

id: github-oauth-access
info:
name: GitHub OAuth Access 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,oauth,token,exposure
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- '\b(gho_[a-zA-Z0-9]{36})\b'
# digest: 490a004630440220677a43b08cda22b0041f064866267c4ae562958e9cdc63bc192024f2bb8257800220014e5948cdc8793762aaa401632137271f4628616f1dad9553a78b41e2c0e0b4: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/exposures/tokens/github/github-oauth-access.yaml"

View on Github