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,vuln

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: 4a0a00473045022100f2bb49858db6631f647a271f61509ba87458c48022d4c3d8987dcd7eaf8e59be02201ec2c47badcc86b779200d477546418959f7591fdd57cf1e81a03e90d02c315b:922c64590222798bb761d5b6d8e72950