Moab User Impersonation
-
John Fitzpatrick
Luke Jennings
- Published: 6 Oct 2014
CVE-2014-5375
Share
Type
Severity
Affected products
Affected Versions
Vendor
Vendor Response
Authors
CVE Reference
2014-01-21 | Detailed vulnerability information provided to Adaptive |
2014-09-01 | Full advisory provided to Adaptive |
2014-09-08 | Release of advisory to HPC community |
2014-09-25 | Public release of advisory |
It is possible to submit jobs to Moab as arbitrary users due to insufficient authentication checks during the submission of a job to the Moab server.
Users are able to submit jobs as arbitrary users. In environments that permit it this could allow job execution as root.
Moab does not sufficiently validate the job submissions against its intended user ID values.
An upgrade to Moab 7.2.9 or Moab 8 prevents direct exploitation of this issue (further details are provided in the “Technical Details” section below). In these versions jobs submitted in this manner enter a held state, this is flagged as a known issue by Adaptive (MOAB-7478):
“Jobs submitted with invalid credentials are put in a held state, instead of rejected, until the administrator can respond. The checkjob command gives administrators further information regarding why the job is held. Blindly assuming that all held jobs should in fact be running RIGHT NOW is not only unsafe, but circumvents intentional Moab policies and workflow. An administrator should exercise care when resolving held jobs”.
Administrators should be aware that attackers can control the
Moab is a workload manager used in High Performance Computing (HPC) environments. In a typical environment a user submits their jobs to the Moab server for it to handle the workload. Moab communication makes use of an XML based protocol. An example message showing a job submission is shown below:
Within this message users are specified in multiple locations, these are highlighted in bold in the message above. In versions of moab prior to Moab 8 there are two instances of the “actor” value specified. In order for mauth to sign a message the actor specified within the
In addition to checks at the mauth level the server will perform its own checks. The server ensures that the
Since the actor value within the body tag is not verified by mauth, and this actor value is also the one against which the server checks the
The example above describes this process when impersonating users during job submission. Moab also provides a means to reconfigure the server and a similar approach can be adopted to impersonate root and perform server reconfiguration.
In Moab 8 only a single actor value is contained within the messages and is used by both mauth and by the Moab server. This prevents manipulation of the
Whilst components of this issue remain outstanding, upgrading to 7.2.9 or Moab 8 appears to mitigate direct exploitation of the issue.