REDHAT-BUG-1064556: Medium severity Red Hat CloudForms Management Engine vulnerability
Jan Rusnacko of the Red Hat Product Security Team reports:
CFME fails to check if the current user is allowed to delete catalogs. Regular user with minimal privileges will not see Catalog menu, as role based check is performed in view (layouts/pageheadernavbar.html.haml):
45 -if roleallows(:feature => 'catalog',:any => true) 46 %li(class="#{secondarynavclass('catalogs')}") 47 %a{:href=>'/catalog/explorer'}Catalogs
In the context of running application:
(rdb:1) User.currentuser.name "testuser1" (rdb:1) roleallows(:feature => 'catalog',:any => true) false
By POSTing a request and going through catalog IDs sequentially an attacker can delete all catalogs.