Snipe-it: Admin Loophole

Created on 31 Aug 2019  路  21Comments  路  Source: snipe/snipe-it

Describe the bug
User can elevate themselves over their current permission level.

To Reproduce
Steps to reproduce the behavior:

  • Create a user and assign to a group that does not have admin privileges, but can edit users.
  • login as the new user.
  • edit yourself and change your permission for "Admin" from "Inherit" to "Grant"

Expected behavior
Edit a user such as change their location, reset their password, disable their account. But not grand them access rights above your own.

Server:

  • Snipe-IT Version: v4.7.6 - build 4143 (master)
  • Ubuntu
  • Apache

Further Information
I am hiding the sections that we are not currently using (such as components) so that the UI stays as clean and as simple to use as possible. This loop hole allows people that can edit users to also turn on the hidden sections of the software.

security bug ready for dev stale

All 21 comments

@tomholovis I tried to reproduce the result but was unsuccessful. I did the following since I am working from a vanilla install.

  • Create a group with permission to view reports and assets, also view, create, and edit users.
  • Create and assign the user to the test group
  • From a different browser, log in with the user

Let me know if there are additional permissions that need to be added to produce the result that you are experiencing.

@EarlRamirez thanks for testing this. I am also working on a fresh install (I am trying to create a template VM image).

I create the group "test group". And give the the same permissions as yourself.
I create the user "test" and assign them to "test group".
I login with a different browser as "test".
I then navigate to people and select the edit button on myself (the user "test").
I can then select the Permissions tab and give myself any permissions I want other than super user.

How is the behaviour that you see different? Can you also edit your own permissions?

@tomholovis, I just realise that I was on the vanilla version from https://github.com/EarlRamirez/snipeit_iso. I will upgrade from 4.6.5 to 4.7.6 and try again.

GitHub
Up and running with Snipe-IT. Contribute to EarlRamirez/snipeit_iso development by creating an account on GitHub.

Confirmed its a bug, sent an email to Snipe-IT security team as instructed here

Thanks. I missed that!

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

Did this get fixed?

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@EarlRamirez - did you spot if this got fixed?

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@snipe - did this get fixed?

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@snipe - did this get fixed?

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

I'll try this one more time. @snipe did this get fixed?

This is the last time I'm poking this thread as I'm not using the platform for future projects.

I believe this was fixed many versions ago.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laTruffe79 picture laTruffe79  路  4Comments

sopheaouk picture sopheaouk  路  3Comments

snipe picture snipe  路  3Comments

Rungea96 picture Rungea96  路  4Comments

mauroaltamura picture mauroaltamura  路  5Comments