Skip to content

Jenkins Token or Crumb

ID: jenkins-crumb-token

Severity: info

Author: DhiyaneshDK

Tags: jenkins,crumb,token,exposure

id: jenkins-crumb-token
info:
name: Jenkins Token or Crumb
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/jenkins.yml
- https://www.jenkins.io/blog/2018/07/02/new-api-token-system/
- https://www.jenkins.io/doc/book/security/csrf-protection/
metadata:
verified: true
max-request: 1
tags: jenkins,crumb,token,exposure
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- '(?i)jenkins.{0,10}(?:crumb)?.{0,10}\b([0-9a-f]{32,36})\b'
# digest: 490a0046304402205d9fca6cd29af11cd116e2508f441223eb095da886872f373d1c87479823554002202fba9acb203347282133e9c0fba6d10487e0e56e311f6a1709abd7fcd9aebe69: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/jenkins/jenkins-crumb-token.yaml"

View on Github