header-logo
Suggest Exploit
vendor:
Zapya
by:
Arash Khazaei
7,2
CVSS
HIGH
Privilege Escalation
269
CWE
Product Name: Zapya
Affected Version From: 1.803
Affected Version To: 1.803
Patch Exists: NO
Related CWE: N/A
CPE: a:izapya:zapya
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Windows 7 Professional X86, Windows 10 Pro X64
2016

Zapya Desktop Version (‘ZapyaService.exe’) Privilege Escalation

When Zapya Desktop is installed, a service named ZapyaService.exe is placed in the Zapya installation directory. If this file is replaced with a malicious executable file, it will execute with NT/SYSTEM user privilege. To exploit this vulnerability, a Meterpreter executable payload must be generated, the service must be stopped and the malicious executable must be placed in the Zapya installation directory with the exact name of ZapyaService.exe. After starting the service, a reverse Meterpreter shell with NT/SYSTEM privilege will be obtained.

Mitigation:

Ensure that the ZapyaService.exe file is not replaced with a malicious executable file.
Source

Exploit-DB raw data:

# Exploit Title: Zapya Desktop Version ('ZapyaService.exe') Privilege Escalation  
# Date: 2016/9/12
# Exploit Author: Arash Khazaei
# Vendor Homepage: http://www.izapya.com/
# Software Link: http://binaries.izapya.com/Izapya/Windows_PC/ZapyaSetup_1803_en.exe
# Version: 1.803 (Latest)
# Tested on: Windows 7 Professional X86 - Windows 10 Pro X64
# CVE : N/A

======================
# Description :
# Zapya is a 100% free tool for sharing files across devices like Android, iPhone, iPad, Window’s Phone, PC, and Mac computers in an instant. 
# It’s Easy to use and supports multiple languages. We are already a community of 300 million strong users and growing rapidly.
# When You Install Zapya Desktop , Zapya Will Install A Service Named ZapyaService.exe And It's Placed In Zapya Installation Directory .
# If We Replace The ZapyaService.exe File With A Malicious Executable File It Will Execute As NT/SYSTEM User Privilege.
======================

# Proof Of Concept :
# 1- Install Zapya Desktop . 
# 2- Generate A Meterpreter Executable Payload .
# 3- Stop Service And Replace It With ZapyaService.exe With Exact Name.
# 4- Listen Handler For Connection And Start Service Again or Open Zapya Desktop , Application Will Attempt To Start Service 
# 5- After Starting Service We Have Reverse Meterpreter Shell With NT/SYSTEM Privilege.

==================
# Discovered By Arash Khazaei
==================