Files
sif/modules/recon/jenkins-api-exposure.yaml
T
TigahandGitHub 2c9bb4bad7 feat(modules): add jenkins and nifi exposure modules (#257)
add recon modules for self-hosted automation servers whose api is reachable
without credentials when misconfigured: jenkins /api/json answers when
anonymous read access is enabled and lists every job, view and node, and
apache nifi /nifi-api/flow/about answers when the instance runs without
security; each open instance reaches a script console or processor that runs
arbitrary code, while a jenkins without anonymous read returns 403 and a
secured nifi returns 401 and neither is flagged.
2026-07-02 12:56:21 -07:00

40 lines
795 B
YAML

# Jenkins API Exposure Detection Module
id: jenkins-api-exposure
info:
name: Jenkins API Exposure
author: sif
severity: high
description: Detects a Jenkins controller with anonymous read enabled that leaks every job, view and node over its json api
tags: [jenkins, hudson, ci, build, automation, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/json"
matchers:
- type: regex
part: body
regex:
- '"_class"\s*:\s*"hudson\.model\.Hudson"'
- type: word
part: body
words:
- "\"jobs\""
- type: status
status:
- 200
extractors:
- type: regex
name: jenkins_job
part: body
regex:
- '"jobs"\s*:\s*\[\s*\{[^}]*?"name"\s*:\s*"([^"]+)"'
group: 1