2023-03-07 10:33:59 +00:00
|
|
|
id: github-personal-access
|
2023-03-07 09:40:29 +00:00
|
|
|
|
|
|
|
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:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2023-03-07 09:40:29 +00:00
|
|
|
verified: "true"
|
|
|
|
tags: github,token,exposure
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2023-03-07 09:40:29 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- '\b(ghp_[a-zA-Z0-9]{36})\b'
|