Bug #9947
closedCVE-2015-1844 - GET /api/hosts doesn't respect organization/location membership
Description
I created a new user with a dedicated role with the following permissions:
Host/managed: view_hosts
The user is a member of 1 organization and 2/4 locations. When logging in via the web interface, the user can only see the hosts belonging to that 1 organization/2 locations. However, an API call via /api/hosts lists the hosts of all organizations and all locations. The only way I could fix this was by applying a location/organization restriction to the view_hosts filter on the role.
Updated by Dominic Cleal over 9 years ago
- Category changed from API to Organizations and Locations
Updated by Marek Hulán over 9 years ago
- Status changed from New to Assigned
- Assignee set to Marek Hulán
Updated by The Foreman Bot over 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2273 added
- Pull request deleted (
)
Updated by Dominic Cleal over 9 years ago
- Subject changed from GET /api/hosts doesn't respect organization/location membership to CVE-2015-1844 - GET /api/hosts doesn't respect organization/location membership
Updated by Marek Hulán over 9 years ago
- Blocked by Bug #9967: Unit tests do not isolate user setup added
Updated by Marek Hulán over 9 years ago
- Translation missing: en.field_release set to 40
Updated by Dominic Cleal over 9 years ago
- Related to Refactor #10025: Move taxonomy related methods and scopes to Host::Base added
Updated by Dominic Cleal over 9 years ago
- Related to Bug #10005: CVE-2015-1844 - Discovery hosts are not restricted to user taxonomies added
Updated by Marek Hulán over 9 years ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset abe910f2a46f4ecc1f349263d0b4751ed46ff200.
Updated by Daniel Lobato Garcia over 9 years ago
Warning for the release notes: this PR will make global (unscoped by organization/location) objects invisible to all users except for admins. If you want to make global objects you should assign them to all taxonomies.
Updated by Dominic Cleal over 9 years ago
- Related to Bug #10918: Provisioning templates no longer resolve/available for non-admin users in Foreman 1.7.5 added