Skip to content
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

As a non-admin user, I shouldn't be able to delete another user's board #173

Open
sylvansson opened this issue Apr 29, 2021 · 6 comments
Open

Comments

@sylvansson
Copy link
Collaborator

sylvansson commented Apr 29, 2021

The deleteBoard route currently allows callers to delete boards owned by another user, even if the caller is not an admin.

Acceptance criteria

@sylvansson
Copy link
Collaborator Author

@martinbedouret This might be a good task for Katerina and Maria? I know it's security-related but it should be fairly simple, and I wrote some tests in #174 so they can validate that the fix works as intended.

@callapa1
Copy link

Just in case, I'm completely new to this app and api (and a beginner dev), but I realized that the same problem should happen with deleting a user?
removeUser is almost identical with deleteBoard, both not considering the user and going straight to findByIdAndRemove

@sylvansson
Copy link
Collaborator Author

Hi @callapa1, good observation. I would have to check, but as far as I know only an admin can call the removeUser route. It's a bit hidden but you can see it in the Swagger definition for the route.

@callapa1
Copy link

Hi @sylvansson . Yes, I just found it. Only admin in x-security-scopes

@sylvansson
Copy link
Collaborator Author

Hi @callapa1, are you still working on this? If not, I might assign the issue to someone else.

@callapa1
Copy link

callapa1 commented May 9, 2021

Hello @sylvansson . Sorry, I had some problems trying to reproduce the environment because of all the API keys needed. Yes, you can assign this to someone else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants