id: apache-nifi-unauth

info:
  name: Apache NiFi - Unauthenticated Access
  author: pwnhxl
  severity: high
  description: |
    Apache NiFi server was able to be accessed because no authentication was required.
  reference: |
    - https://github.com/jm0x0/apache_nifi_processor_rce
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
    cvss-score: 8.6
    cwe-id: CWE-285
    cpe: cpe:2.3:a:apache:nifi:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"NiFi"
    fofa-query: title="nifi" && body="Did you mean"
    product: nifi
    vendor: apache
  tags: misconfig,apache,nifi,unauth

http:
  - method: GET
    path:
      - "{{BaseURL}}/nifi-api/access/config"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"supportsLogin":false}'

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 4a0a0047304502206567cc8f652c5cc6c20f89616bb631ad184aaead10b6da76fce269efd728b1bc022100ce953965b721446c385860b04c711b2046983dc5c75ec7463392a46d13b14ddd:922c64590222798bb761d5b6d8e72950