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

fix: User with no root permissions is allowed to successfully delete user using Postman #583

Open
VeronikaHordus opened this issue Sep 28, 2024 · 0 comments
Assignees

Comments

@VeronikaHordus
Copy link
Collaborator

Describe your issue

User with no Root permission can commit deliting of user, user group using Postman.

Steps to reproduce

  1. In Postman login with user data who does not have any of root permissions. (GET : /auth/sign-in)
  2. Copy the token from the Responce body of the Step 1
  3. Create a new request to Get all users (inject the token from step 2 into the Authorization ) (GET: /users)
  4. Pick a user from the list and copy its id for the next step
  5. Create a request to delete user (DELETE /users ) inject the user id from the step 4 into the request body
  6. Observe the responce status code

What was the actual result?

User is suvvessfully deleted from the application.

What was the expected result?

The 403 Forbidden status code shown. User cannot be deleted without a root Access Managment permission.

Put here any screenshots or videos (optional)

Image

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Other (mention in the description)

Severity

Major (S3)

@VeronikaHordus VeronikaHordus added this to the git-fit-release-6 milestone Sep 28, 2024
@VeronikaHordus VeronikaHordus changed the title fix: User with no root permissions is allowed to successfully commit the operations in the Rood accessible directories using Postman fix: User with no root permissions is allowed to successfully delete user using Postman Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants