nuclei-templates/http/exposures/tokens/docker/docker-hub-pat.yaml

25 lines
773 B
YAML

id: docker-hub-pat
info:
name: Docker Hub Personal Access Token
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/dockerhub.yml
- https://docs.docker.com/security/for-developers/access-tokens/
metadata:
verified: true
max-request: 1
tags: docker,exposure,tokens
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- \b(dckr_pat_[a-zA-Z0-9_-]{27})(?:$|[^a-zA-Z0-9_-])
# digest: 4a0a00473045022100ca2d82e4cb872fb90de8d32526c0dd9aba1be244395d92daab685239a6d9f10f02205adba3fca660a38281fe22945404d44f2c028c6dcc12141a3c9dcc9f8d60fc81:922c64590222798bb761d5b6d8e72950