mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #7440] API allows sign up of new users despite new sign-up setting is disabled #14747
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jmrobles on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7440
Bug Report
Installation Method
docker
Environment
Confirmation:
Expected Behavior:
If the "allow new sign-up" is disabled in general setting, a user shouldn't sign-up using the API /api/v1/auths/signup
Actual Behavior:
A user can be registered using the API despite the "allow new sign-up" setting is disable
Description
If the default role for new users is "user", despite the "allow new sign-up" is disabled, an attacker can register new users in the system and perform requests to /chat/completions endpoints.
Reproduction Details
Logs and Screenshots
Additional Information
This mistake costs my company about $1,700.
@tjbck commented on GitHub (Nov 27, 2024):
Sign up is properly scoped and if you have new sign ups disabled like above, you'll get the following error message:
Feel free to verify the code yourself.
@jmrobles commented on GitHub (Nov 27, 2024):
Thanks @tjbck ! it's true, I think I was not using the latest version.
I've checked now and it works as expected.