Files
sif/modules/recon/nifi-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

42 lines
840 B
YAML

# Apache NiFi API Exposure Detection Module
id: nifi-api-exposure
info:
name: Apache NiFi API Exposure
author: sif
severity: high
description: Detects an unsecured Apache NiFi whose rest api leaks build details and grants full code-executing control of the dataflow
tags: [nifi, apache-nifi, dataflow, etl, automation, rce, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/nifi-api/flow/about"
matchers:
- type: word
part: body
words:
- "\"about\""
- "\"version\""
condition: and
- type: regex
part: body
regex:
- '"title"\s*:\s*"NiFi"'
- type: status
status:
- 200
extractors:
- type: regex
name: nifi_version
part: body
regex:
- '"version"\s*:\s*"([^"]+)"'
group: 1