Project

General

Profile

Actions

Bug #10005

closed

CVE-2015-1844 - Discovery hosts are not restricted to user taxonomies

Added by Marek Hulán almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I found security issue that's very similar to what is being fixed in Foreman and tracked as http://projects.theforeman.org/issues/9947 The Foreman fix doesn't fix it, because it's present in discovery codebase. See https://github.com/theforeman/foreman_discovery/blob/develop/app/models/host/discovered.rb#L30

This allows user to manipulate all discovered hosts (if they have global permission) even if they are assigned to specific org/loc. The fix is either to apply the same patch as we did in Foreman Host::Managed or (better) move the fix to Host::Base and remove this default scope from discovery.


Related issues 2 (0 open2 closed)

Related to Foreman - Refactor #10025: Move taxonomy related methods and scopes to Host::BaseClosedMarek Hulán04/06/2015Actions
Related to Foreman - Bug #9947: CVE-2015-1844 - GET /api/hosts doesn't respect organization/location membershipClosedMarek Hulán03/30/2015Actions
Actions

Also available in: Atom PDF