nifi-api-unauthorized-access: Apache Nifi Api Unauthorized Access

2025-08-01 Apache Nifi PoC Public

Description

Apache NiFi Api未授权访问导致命令执行

PoC

id: nifi-api-unauthorized-access

info:
  name: Apache Nifi Api Unauthorized Access
  author: wulalalaaa
  severity: high
  verified: false
  description: |-
    Apache NiFi Api未授权访问导致命令执行
  reference:
    - https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
  tags: apache,nifi,unauth
  created: 2023/07/07

rules:
  r0:
    request:
      method: GET
      path: /nifi-api/flow/current-user
    expression: response.status == 200 && response.headers["content-type"].contains("json") && response.body.bcontains(b"\"identity\":\"anonymous\",\"anonymous\":true")
expression: r0()

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities