Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions apache/nifi_api/exposedui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,33 @@ This directory contains the deployment configs for a vulnerable Apache NiFi API
version (1.12.0).

The deployed service has name `apache-nifi-api` and listens on port `8080`.

## Docker Compose
```
docker compose up
```
Vulnerable service (no authentication) will be on port 8081
Safe service (default auth + TLS) will be on port 8082.

## Testing the vulnerability
### Vulnerable
```
curl localhost:8081/nifi-api/access/config
```
Response:
```
{"config":{"supportsLogin":false}}
```

### Safe
```
curl -vk https://localhost:8082/nifi-api/access/config
```
Response:
```
HTTP/2 401
...

Unauthorized
```

16 changes: 16 additions & 0 deletions apache/nifi_api/exposedui/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
nifi-vuln:
container_name: nifi-vuln
image: apache/nifi:1.12.0
ports:
- "8081:8080"

nifi-safe:
container_name: nifi-safe
environment:
- SINGLE_USER_CREDENTIALS_USERNAME=admin
- SINGLE_USER_CREDENTIALS_PASSWORD=ggdwsfsddwfgwregwrgrheeg
- NIFI_WEB_HTTPS_PORT=8082
image: apache/nifi:2.9.0
ports:
- "8082:8082"