Skip to content

Commit

Permalink
Add poc-yaml-apache-nifi-api-unauthorized-access (chaitin#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
wulalalaaa authored Nov 4, 2021
1 parent 2d2cd26 commit a7bee49
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pocs/apache-nifi-api-unauthorized-access.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: poc-yaml-apache-nifi-api-unauthorized-access
manual: true
transport: http
rules:
r0:
request:
cache: true
method: GET
path: /nifi-api/flow/current-user
follow_redirects: false
expression: response.status == 200 && response.content_type.contains("json") && response.body.bcontains(b"\"identity\":\"anonymous\",\"anonymous\":true")
expression: r0()
detail:
author: wulalalaaa(https://github.com/wulalalaaa)
links:
- https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

0 comments on commit a7bee49

Please sign in to comment.