Closed krishna619 closed 1 month ago
@palisadoes I believe this issue is to be addressed from the front end as well. What are your thoughts?
Admins in a specific role should be able to edit the profiles of people at or below their level. Therefore:
This needs to be enforced in the API first
@palisadoes I see, apart from it
Create issues as required
@palisadoes https://github.com/PalisadoesFoundation/talawa-api/issues/2147 done
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.
Can we encrypt the URL parameters also using strong cryptographically tokens which references models?
Encrypting won't help, anyone with the encrypted payload (visible in the request param) can still make edits. This needs auth implementation.
@krishna619, you logged in the SuperAdmin account by changing their email id but how do u password for that superadmin account ?🤔
I don't think there's any extra thing what interceptor does. It's just changing the request and response from API, otherwise every permissions is being checked and managed by API itself. If you're able to see superadmin details just being an Admin, then it's only bcuz User Query doesn't require role permissions. That's an expected flow and doesn't look like a bug. It might look like a very big issue from your video but that's only the frontend being manipulated due to usage of localStorage. This doesn't make changes to database which is being access via API.
If standalone API is working properly (use Apollo server to test it), then it's 100% secure even if you can manipulate frontend via interceptors or anything.
@pranshugupta54 once i changed the email address to testhacked@example.com
I can anyways get a new password by forgetting the password, where the password would be sent to testhacked@example.com
and hence i can login as super admin.
@krishna619, did it change the email in database? I don't think so? It's just frontend part interceptor doing it.
How did it make him log in if it didn't save in the backend? Will look into it more thoroughly.
Most probably the interceptor is just saving it on the frontend
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.
This issue did not get any activity in the past 180 days and thus has been closed. Please check if the newest release or develop branch has it fixed. Please, create a new issue if the issue is not fixed.
Describe the bug In the Talawa admin portal, an admin can edit other users' profiles, including those of super admins, by intercepting and manipulating the edit profile request.
To Reproduce Steps to reproduce the behavior:
66378abd85008f171cf2990d
to64378abd85008f171cf2990d
).Key Points 1) If I change the email address to
testhacked@example.com
and log in via that, It still shows the unchanged email addresstestsuperadmin@example.com
but allows me to log in via the changed one.2) Now even if I try to change the email to some random
abc@example.com
it shows a success status on the front end but it does not allow me to log in with the new one (User not found).https://github.com/PalisadoesFoundation/talawa-api/assets/52276473/f583e4fc-d8b8-4adf-a619-69ae2fc44df5
Additional details Add any other context or screenshots about the feature request here.
Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359