How to restrict Webflow dashboard access in Memberstack to prevent users from viewing other members' data via slug? Answered
Let's say I have several users attached to a memberstack plan. This plan means they can each access a dashboard with personalised data for each user in a CMS webflow collection.
At the moment, I've noticed that a logged-in user who knows the webflow slug (URL) of another user can access his dashboard, which is an obvious breach of access control for me.
How can I avoid this problem?
Comments
5 comments
Hi Eric 👋
I recommend adding this script to your CMS collection template. It will redirect the member if they try to access another person's page.Â
Thank you for your response! Do you think there's no risk of client-side javascript manipulation here?
Hey Eric Yen 👋 It's certainly possible, and there's no such thing as a zero-risk system. I think this is more of a question of trust (i.e. how likely is it that your customers will circumvent this code in order to access another person's page) and what is housed on those pages. Are you storing sensitive information directly inside of Webflow?
Yes sensitive data is stored in the webflow database
Eric Yen I totally missed your reply, my apologies!
I need to warn you against storing sensitive information directly inside of the Webflow CMS. It's best to store that kind of information in Memberstack using a member's custom fields, member JSON or hosted content.Â
Please sign in to leave a comment.