You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It responds with :
{"id":1,"email":"kalin.kochnev@gmail.com","first_name":"Kalin","last_name":"Kochnev","is_anon":false}
I can do this for all IDs in the system and pull out the registered emails and names
I do see a reason to provide some of this information to authenticated users (e.g. as a user browsing the site, I might want to be able to see the names or registered contact info for a specific user), but this seems like it shouldn't be available to unauthenticated users.
I observed this on a few different endpoints:
/api/user/{userId}
/api/district/
There are probably others as well.
The text was updated successfully, but these errors were encountered:
akochnev
changed the title
User (/api/user/{userId}) endpoint allows un-authenticated access
Non-admin endpoints allow un-authenticated access
Aug 18, 2020
This is a security issue in that it allows anyone to hit that API endpoint and retrieve the emails/names of the registered users. Repro steps:
curl -X GET "http://localhost:8000/api/user/1/" -H "accept: application/json"
It responds with :
{"id":1,"email":"kalin.kochnev@gmail.com","first_name":"Kalin","last_name":"Kochnev","is_anon":false}
I can do this for all IDs in the system and pull out the registered emails and names
I do see a reason to provide some of this information to authenticated users (e.g. as a user browsing the site, I might want to be able to see the names or registered contact info for a specific user), but this seems like it shouldn't be available to unauthenticated users.
I observed this on a few different endpoints:
There are probably others as well.
The text was updated successfully, but these errors were encountered: