KEMBAR78
Update ui_model_menu.py blocking the --multi-user access in backend by Alidr79 · Pull Request #7098 · oobabooga/text-generation-webui · GitHub
Skip to content

Conversation

Alidr79
Copy link
Contributor

@Alidr79 Alidr79 commented Jun 25, 2025

In the --multi-user mode, the app is blocking the access by disabling the UI components. But with a simple inspect an abuser could enable it and run the action. So we should block the access also in the backend. A simple way is to block it in the event_handlers. Here specifically the abuser can't unload the model by doing a simple inspect in the browser!

Checklist:

Alidr79 and others added 4 commits June 25, 2025 20:21
In the --multi-user mode, the app is blocking the access by disabling the UI components. But with a simple inspect an abuser could enable it and run the action. So we should block the access also in the backend. A simple way is to block it in the event_handlers.
Here specifically the abuser can't unload the model by doing a simple inspect!
In the --multi-user mode, the app is blocking the access by disabling the UI components. But with a simple inspect an abuser could enable it and run the action. So we should block the access also in the backend.
Here in an abuse scenario the abuser can change the Boolean command-line flags (consider the multi_user checkbox) and then enable the "Apply flags/extensions and restart" button only with a simple web inspect. At the end the app will be restarted in a not multi-user (single user) mode and the abuser now has the full control of the app.
@oobabooga
Copy link
Owner

Makes sense, I wasn't aware non-interactive elements could be made interactive with the browser tools. Nice catch.

@oobabooga oobabooga merged commit e5767d4 into oobabooga:dev Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants