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

Tenant Variables view-able/update-able for Environments not scoped in the associated Team when logged-in User is associated with Multiple Teams/User Roles #4474

Closed
reecewalsh opened this issue Apr 13, 2018 · 7 comments
Labels
kind/bug This issue represents a verified problem we are committed to solving tag/permissions
Milestone

Comments

@reecewalsh
Copy link

reecewalsh commented Apr 13, 2018

Version:

Tested and replicated in Octopus version 2018.3.13

Issue:

The logged-in user is able to view/update/save variable values within the Tenant Variables area for Environments that do not exist within their associated Team scoping.

This occurs in situations where the logged-in Users also belongs to multiple teams where one of the Teams has the VariableEdit permission for VariableView permissions exist for the environment.

Replication Steps:

  1. Create a Test Project with Multi-Tenant Deployments enabled

image

  1. Connect the associated Project to a newly generated Tenant and select two environments (i.e. Testing & UAT);

image

  1. Create a Project Template within the Project;

image

  1. Create a Test Octopus User

  2. Create two Teams based on the Permissions information specified below and associate the newly created User with these Teams.

  3. Login to Octopus as the newly created User

  4. Navigate to Tenants > Variables

  5. In this area it's possible to view/update/save variables belonging to environments that are not specified within the Team that has the UserRole required containing the VariableEdit permission

  6. The expected behavior here would be still be able to view the variable but updating/saving should not be an option;

update tenant variables

Permissions Information:

User Roles:

User Role - Test Editor

image

User Role - Test Reviewer

image

Teams:

Team - Test Editor

image

Team - Test Reviewer

image

Test Permissions - Export

image

Source:

https://help.octopus.com/t/a-user-can-edit-environment-scoped-variable/19645

@reecewalsh reecewalsh added kind/bug This issue represents a verified problem we are committed to solving area/modelling labels Apr 13, 2018
@reecewalsh
Copy link
Author

May relate to another existing issue regarding permissions;

#4454

@pawelpabich
Copy link

@mayuanyang
Copy link

On top of that, what I did was to have 3 users issue4474viewer, issue4474editor and issue4474, issue4474viewer assigned to the Viewer team, issue4474editor to the Editor team and issue4474 for both teams.

Both issue4474viewer and issue4474editor work as expected, only issue4474 has the problem as described above.

My gut feeling is the permission system might just put all permissions from every role of the teams into the same bag and ignore the scoping. E.g. the environment scoped is being ignored in this case

@octoreleasebot
Copy link

Release Note: Fix a bug where environment scoped users without VariableEdit permission can save variable

@mayuanyang
Copy link

CVE-2018-10581

@lock
Copy link

lock bot commented Nov 23, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.

@lock lock bot unassigned mayuanyang Nov 23, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug This issue represents a verified problem we are committed to solving tag/permissions
Projects
None yet
Development

No branches or pull requests

4 participants