This module exploits a mass assignment vulnerability in the 'create' action of 'users' controller of Foreman and Red Hat OpenStack/Satellite (Foreman 1.2.0-RC1 and earlier) by creating an arbitrary administrator account. For this exploit to work, your account must have 'create_users' permission (e.g., Manager role).
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use auxiliary/admin/http/foreman_openstack_satellite_priv_esc
msf auxiliary(foreman_openstack_satellite_priv_esc) > show actions
...actions...
msf auxiliary(foreman_openstack_satellite_priv_esc) > set ACTION < action-name >
msf auxiliary(foreman_openstack_satellite_priv_esc) > show options
...show and set options...
msf auxiliary(foreman_openstack_satellite_priv_esc) > run
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security