-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebChat "default-user" causes shared user state #1344
Comments
Also, this is my code:
|
@lauren-mills Where you ever able to come up with a solution to this issue? I've been having the same problem. Here is what I've found. If I do this in a dialog
And I look in my CosmosDB for the Document that was created, I find this
I'm assuming the last part of the string is the user-id/user-name, which now always defaults to 'default-user' because of the change that was made in V4 from V3. |
@lauren-mills @baldrin found the issue in The problem is, if the user is using Direct Line secret (but not access token), it is always using Note to fixer
|
Thanks, William! |
@lauren-mills sorry was late to response. Feel free to fix it. It will take me ~2 weeks before I can start working on it. |
@compulim , @lauren-mills |
@baldrin Thanks, sounds great! We don't set any special rules. And we will fix your code if we could make it better. 😉
|
@lauren-mills and @baldrin sorry I have poor memory. When I look at existing code, Web Chat will accept I will add documentation on how to change the user ID. And add some validation rules set above. One extra note: if you use React and change the |
PR #1447 will add docs to README.md and more validation rules, pending review. |
Whilst the documentation helps this still will create a situation where developers who use webchat "as-is" will end up with users sharing session state as the userId is shared. We've seen examples of this with people in testing. I would recommend we have some form of fall-back where we use a GUID and/or display a warning message on the webchat canvas. |
We could use |
THIS is a major security issue and has major issues with EU GDPR. I am flabbergasted. Are you aware that Microsoft makes all EU companies using the Microsoft Botframework breach the EU regulations. You have to turn to the general public and inform all companies, that the webchatcontrol is NOT safe to use. This security flaw is known since 13. Nov 2018! |
I noticed during some testing using UserState that each time I opened webchat it would pull down the same state object in each instance.
Webchat uses "default-user" as the id for all anonymous users which means all users will share the same user state. This seems like a security risk.
Can we change to use a random user id for all anonymous users?
The text was updated successfully, but these errors were encountered: