Bug #15268
closedCVE-2016-4475 - API and UI org/locations actions not limited to user's associated orgs/locations
Description
A number of API and UI actions/URLs for viewing and managing organisations and locations are not limited to the orgs/locations assigned directly to the user, instead they are only restricted by permissions assigned to the user's roles.
- API index calls: GET /api/v2/organizations, GET /api/v2/locations
- API show/update/destroy calls
- UI edit/update/destroy calls
The UI index for orgs/locations and the UI org/location switcher appears to be the only place where the user's associated orgs/locations are taken into account.
Both UI and API controllers should be overriding methods for resource scopes to limit them further to the Organization.my_organizations/Location.my_locations scopes.
Mitigation: ensure all org/location related permissions assigned to a user are restricted to certain orgs/locations, these should still be taken into account.
Thanks to Ivan Necas for reporting this to foreman-security@googlegroups.com.
Updated by Marek Hulán over 8 years ago
- Status changed from New to Assigned
- Assignee set to Marek Hulán
Updated by Marek Hulán over 8 years ago
- Related to Tracker #10022: Taxonomies related issues added
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3568 added
Updated by Dominic Cleal over 8 years ago
- Subject changed from API and UI org/locations actions not limited to user's associated orgs/locations to CVE-2016-4475 - API and UI org/locations actions not limited to user's associated orgs/locations
Updated by The Foreman Bot over 8 years ago
- Pull request https://github.com/Katello/katello/pull/6129 added
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release changed from 159 to 169
Updated by Marek Hulán over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset a30ab44ed6f140f1791afc51a1e448afc2ff28f9.