Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

wrong endpoint used for editing another user #303

Open
karenetheridge opened this issue Jan 5, 2021 · 1 comment
Open

wrong endpoint used for editing another user #303

karenetheridge opened this issue Jan 5, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@karenetheridge
Copy link
Contributor

When editing another user (say, changing their email or name), the api endpoint being submitted to is POST /user/me, not the correct endpoint for the specific user. The result is a 409 conflict because the logged in user's info is being set to someone else's data, causing a "duplicate user found" error.

@karenetheridge karenetheridge added the bug Something isn't working label Jan 5, 2021
@karenetheridge karenetheridge changed the title cannot edit another user wrong endpoint used for editing another user Jan 5, 2021
@karenetheridge
Copy link
Contributor Author

karenetheridge commented Jan 18, 2021

This is a pretty serious issue. I just tried to fix a typo I spotted in someone's username and email address, and it changed my data instead (including changing my password and stripping my admin flag)... if I had logged out, I would no longer be able to log in using my original email, and if someone reset my password for me, those credentials would be mailed to the other person instead.

I had to fix my data by going into the database directly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant