Skip to content

Docker Hub Personal Access Token

ID: docker-hub-pat

Severity: info

Author: DhiyaneshDK

Tags: docker,exposure,tokens

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: 490a00463044022015c66dbcffe3d5dedb121a8465395af2f1d86122f3bab854669549fa8e7726a402206d8c79927f7d41083ed945af35679c0d2c685c0c801338624ce285d90b5cbccd: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/docker/docker-hub-pat.yaml"

View on Github