Skip to content

GHSA-v5w9-prxf-w882 Flowise has Authentication Bypass Using Unprotected Registration Endpoint (/register)

HighCVSS 8.7
Published
Updated
Exploit status
No public exploit known
Technology
Docker

Description

Summary

An unauthenticated attacker can exploit the unprotected registration endpoint (/register) to create a new user and bypass authentication.

Details

Critical vulnerability in Flowise 3.0.1 on-premise deployment allows unauthenticated attackers to exploit the /api/v1/account/register endpoint to add a new user and log in using it, enabling authentication bypass.

Meaning that the register functionality is by default open, allowing attackers to create an account and use the api without any restrictions or credentials.

PoC

A Flowise 3.0.1 instance was deployed via Docker for the purpose of this demonstration.
Image: 1 Docker

After successful deployment the instance setup organization page allows us to register the first account in the system.
Image: 1 newly deployed instance

Creating the first user research@evasec.io
Image: 2 configuring account

Login to the account
Image: 2 Login

The background request that created the first user to /api/v1/account/register
Image: 3 request

Response
Image: 3 1 response

We have found that it is possible to reuse the registration request multiple times without any restrictions to create an account and authenticate to the system using it.

Crafting a new request
{
"user": {
"name": "Malicious",
"email": "attacker@attack.io",
"type": "pro",
"credential": "Password123!"
}
}
Image: 4 attacker new register

Response with 201 code “Created”
Image: 4 1 created

Login using newly created user (attacker)
Image: 5 Login using attacker

Success login
Image: 6 Susccess auth bypass

An unauthorized user can exploit this vulnerability to register an account and gain access to the Flowise API with authenticated privileges, effectively bypassing authentication.

Impact

This is an authentication bypass vulnerability caused by an unprotected registration endpoint (/register).

Users of Flowise 3.0.1(latest) on-premise deployments are impacted. An unauthorized attacker can exploit this vulnerability to register an account after the organization set has been completed, and gain access to the Flowise API with authenticated privileges, effectively bypassing authentication.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
npm flowise(npm) = 3.0.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm flowise(npm) = 3.0.1 No fix listed

References