Skip to content
Back

user getting label automatically

  • 0
  • Self Hosted
  • Flutter
BOB
23 Dec, 2023, 06:21

if a user has a mvp or any label and that user created a new user without logout then the newly created user will have those labels. is this a feature or my mistake i did't write any code to give labels

TL;DR
User is experiencing an issue where labels are automatically assigned to newly created users, even if no code was written to assign them. This is confirmed to be a bug by the support team. A workaround suggested is to prevent creating accounts through the create account API and expose it via a function instead. The user is also asking for the best way to give a group of users permission, and mentions using labels for this purpose. This bug allows users to give others their permissions, which may be considered a vulnerability. Solution: The support team suggests using a workaround to prevent creating accounts via the create account API and exposing it through a function.
Drake
23 Dec, 2023, 19:12

This sounds like a bug. Would you please create a GitHub issue?

BOB
24 Dec, 2023, 03:27

kk

BOB
26 Dec, 2023, 19:29
ideclon
26 Dec, 2023, 19:48

Could this be to do with the (intended) behaviour of when an anonymous session is created, then a user is created, the created user inherits the anonymous session?

Drake
26 Dec, 2023, 23:57

To convert an anonymous session, you're supposed to call the update email and update password endpoints

BOB
28 Dec, 2023, 17:45

is this a vulnerability ?

Drake
28 Dec, 2023, 21:25

Not really

BOB
29 Dec, 2023, 14:42

well i used labels to give permission to group of users to execute a function which is cannot be used by all. now by using this bug a user can give other user its permission

BOB
29 Dec, 2023, 14:51

which is the best way to give a group of user permission

Drake
29 Dec, 2023, 17:22

A workaround can be to prevent creating accounts via the create account API and instead expose it via a function

kamal.panara
31 Dec, 2023, 18:19

or you can use prefs

ideclon
31 Dec, 2023, 18:53

Prefs can be modified by the user. That wouldn’t be secure. Also, that wouldn’t help in this scenario anyway, as prefs would also be carried over.

kamal.panara
31 Dec, 2023, 18:57

Oh yes 🙌

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more