Bug 1342665
Summary: | CVE-2016-4475 - API and UI org/locations actions not limited to user's associated orgs/locations | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Bryan Kearney <bkearney> |
Component: | Security | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED ERRATA | QA Contact: | jcallaha |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.2.0 | CC: | bbuckingham, cwelton, ehelms, jcallaha, zhunting |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | foreman-1.11.0.50-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-08-16 07:10:31 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1342439 |
Description
Bryan Kearney
2016-06-03 19:53:35 UTC
Created from redmine issue http://projects.theforeman.org/issues/15268 Upstream bug assigned to mhulan Moving to POST since upstream bug http://projects.theforeman.org/issues/15268 has been closed Eric, it seems that only Foreman part was cherry-picked but Katello needs a fix too, otherwise tests are broken. The revision is not associated from Katello repo for some reason, could you please CP https://github.com/Katello/katello/pull/6129/commits/494221ef7957cacc05bd2ad24b6a58060e5bd65a or let me know how should I proceed? Thank you. Marek, Once the Katello unit tests ran, they failed and we discovered the test fix was needed and they were added. Looking at the timeline seems you noticed they earlier than we did we just didn't see the comment before we saw the test failures. Verified in Satellite 6.2.1 Snap 1.1 After creating a new user "test" was created and assigned only to organization "test" and location "test". The user was successfully limited to viewing/editing orgs and locations in UI. The same is true for API. GET /katello/api/organizations "results": [ { "label": "test", "created_at": "2016-08-08 19:57:24 UTC", "updated_at": "2016-08-08 19:57:24 UTC", "id": 3, "name": "test", "title": "test", "description": "" } ] PUT /katello/api/organizations/1 (Default Org) { "error": { "message": "Resource organization not found by id '1'" } } GET /api/locations "results": [ { "ancestry": null, "parent_id": null, "parent_name": null, "created_at": "2016-08-08 19:58:16 UTC", "updated_at": "2016-08-08 19:58:16 UTC", "id": 4, "name": "test", "title": "test", "description": "" } ] PUT /api/locations/2 (Default) { "error": { "message": "Resource location not found by id '2'" } } Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1615 |