Project

General

Profile

Actions

Bug #9947

closed

CVE-2015-1844 - GET /api/hosts doesn't respect organization/location membership

Added by Andy Taylor about 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 4 (0 open4 closed)

Related to Foreman - Refactor #10025: Move taxonomy related methods and scopes to Host::BaseClosedMarek Hulán04/06/2015Actions
Related to Discovery - Bug #10005: CVE-2015-1844 - Discovery hosts are not restricted to user taxonomiesClosedLukas Zapletal04/02/2015Actions
Related to Foreman - Bug #10918: Provisioning templates no longer resolve/available for non-admin users in Foreman 1.7.5Feedback06/24/2015Actions
Blocked by Foreman - Bug #9967: Unit tests do not isolate user setupClosedMarek Hulán03/31/2015Actions
Actions

Also available in: Atom PDF