29 lines
974 B
YAML
29 lines
974 B
YAML
id: github-personal-access
|
|
|
|
info:
|
|
name: GitHub Personal 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/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
|
|
- https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
tags: github,token,exposure
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- '\b(ghp_[a-zA-Z0-9]{36})\b'
|
|
|
|
# digest: 490a0046304402205514d1080ffde7a262acd435a941cc5a02c89433d16159ad54af78e05b11e04302207071e295c7736956d473e26550f338febb41eb1c5ae67b650dd927ed75f6662d:922c64590222798bb761d5b6d8e72950
|