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
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"NiFi"
    fofa-query: title="nifi" && body="Did you mean"
  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: 490a0046304402200263b216fb88659a3d69fd4b16ac40ea371468ab1eaaa10994736d75f7a0251d022048f8a0fa83b268c2949703b34a5f159f00fd208bbeed1b1ca1c9574457c3dcdb:922c64590222798bb761d5b6d8e72950
