Detect Synology DSM OAuth API Argument Delimiter Injection (CVE-2026-120382) in Google Chronicle
Detects exploitation attempts against an improper neutralization of argument delimiters in a command vulnerability (CWE-88) in the OAuth API of Synology DiskStation Manager (DSM). The flaw affects DSM before 7.1.1-42962-10, 7.2.1-69057-14, 7.2.2-72806-11, 7.3.2-86009-6, and 7.4.1-90080-2. By injecting argument delimiters into OAuth API parameters, a remote attacker can read or write arbitrary files and conduct denial-of-service attacks (CVSS 9.8). This detection surfaces anomalous OAuth API requests containing delimiter-injection patterns, unexpected child processes spawned by DSM web services, and post-exploitation indicators.
MITRE ATT&CK
- Tactic
- Initial Access Execution
YARA-L Detection Query
// df00tech DF00-51d408bb20 · https://df00tech.com/detections/CVE-2026-120382 · licence: https://df00tech.com/detections/licence
rule synology_dsm_oauth_argument_injection_cve_2026_120382 {
meta:
author = "Argus"
description = "Synology DSM OAuth API argument delimiter injection (CVE-2026-120382)"
severity = "HIGH"
events:
$e.metadata.event_type = "NETWORK_HTTP"
re.regex($e.network.http.referral_url, `(?i)/webman/sso/|entry\.cgi|auth\.cgi`) or re.regex($e.target.url, `(?i)/webman/sso/|OAuth`)
re.regex($e.target.url, `(?i)(client_id|redirect_uri|scope|grant_type)=[^&]*(\s|--|%20|;|\$\(|` + "`" + `|\|)`)
$ip = $e.principal.ip
match:
$ip over 10m
condition:
$e
} Chronicle YARA-L rule matching HTTP requests to Synology DSM OAuth endpoints with delimiter injection payloads.
Data Sources
Required Tables
False Positives & Tuning
- Scanner traffic
- Legitimate OAuth clients with special characters
- Pentest engagements
Other platforms for CVE-2026-120382
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Simulated OAuth argument delimiter injection via redirect_uri
Expected signal: Web access log entry for /webman/sso/ containing '--output=' and injected delimiters in redirect_uri.
- Test 2 Shell metacharacter injection in OAuth scope parameter
Expected signal: Web request logged with '$(id)' and ';' delimiters in OAuth-related parameters.
- Test 3 Encoded whitespace argument smuggling probe
Expected signal: Access log entry containing '%20--config=' in the OAuth client_id parameter.
Response Playbook
Triage
- Confirm the targeted host is a Synology NAS running DSM and identify the exact version. DSM before 7.1.1-42962-10, 7.2.1-69057-14, 7.2.2-72806-11, 7.3.2-86009-6, and 7.4.1-90080-2 is affected by CVE-2026-120382.
- Extract the full OAuth API request(s) from the alert and decode URL-encoded parameters to isolate the injected argument delimiters and any smuggled command arguments.
- Determine whether the request returned a success status (2xx) or triggered an unexpected error, and correlate with any shell/child process spawned by DSM web services (synoscgi, httpd, nginx) around the same timestamp.
- Check the source IP reputation and whether it has previously authenticated legitimately to the appliance.
Containment
- Block the offending source IP(s) at the perimeter firewall and restrict DSM administrative/OAuth interface exposure to trusted networks or VPN only.
- If exploitation is confirmed, isolate the Synology appliance from the network and disable the OAuth/SSO service pending patching.
- Apply the Synology fixed release per advisory SA_26_21: DSM 7.1.1-42962-10, 7.2.1-69057-14, 7.2.2-72806-11, 7.3.2-86009-6, or 7.4.1-90080-2 (or later). As a mitigation, deactivate the OAuth Service package.
Evidence Collection
- Preserve DSM web access logs (/var/log/nginx, synoscgi logs), auth logs, and any command/shell execution telemetry for the exploitation window.
- Capture a forensic snapshot of the appliance including cron entries, startup scripts, and the package list for signs of persistence or backdoors.
Escalation Criteria
- !Escalate to incident response if a shell or unexpected child process was spawned by a DSM web service process following the OAuth request.
- !Escalate if evidence of data access, new accounts, scheduled tasks, or outbound connections from the appliance is found after the injection attempt.
Investigation Guide
Forensic Artifacts
- >
DSM nginx/synoscgi web access logs showing OAuth requests with delimiter payloads - >
Process execution records for shells spawned under DSM web service parents - >
New or modified cron jobs, startup scripts, or packages on the appliance
Tuning Guidance
Baseline legitimate OAuth clients and their redirect_uri/state parameter formats to distinguish benign special characters from injection. Narrow the delimiter regex if internal OAuth integrations routinely use hyphenated identifiers. Prioritize alerts that correlate a delimiter-laden request with a shell process spawned by a DSM web service, which strongly indicates successful exploitation versus mere scanning.
Hunting Queries
Hunt for historical OAuth API requests containing argument delimiter injection patterns across the DSM fleet.
// df00tech DF00-51d408bb20 · https://df00tech.com/detections/CVE-2026-120382 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any (dynamic(["/webman/sso/","entry.cgi","auth.cgi"])) | where csUriQuery matches regex @"(?i)(redirect_uri|client_id|scope)=[^&]*(--|%20|;|\$\(|`)" | summarize count() by cIP, csUriStem, bin(TimeGenerated,1h) ``` df00tech DF00-51d408bb20 · https://df00tech.com/detections/CVE-2026-120382 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/webman/sso/*" OR uri_path="*entry.cgi*") | regex uri_query="(?i)(redirect_uri|client_id|scope)=[^&]*(--|%20|;|\$\(|`)" | stats count by src_ip, uri_path Atomic Red Team Tests
Sends an OAuth API request to a lab DSM instance with option-style argument delimiters injected into the redirect_uri parameter to generate detection telemetry.
Command
curl -k -s "https://dsm-lab.local:5001/webman/sso/SSOAccessToken.cgi?client_id=test&redirect_uri=https://attacker--output=/tmp/pwn&scope=user_id&grant_type=code" Cleanup
rm -f /tmp/pwn 2>/dev/null; true Expected Telemetry
Web access log entry for /webman/sso/ containing '--output=' and injected delimiters in redirect_uri.
Expected Detection
KQL/SPL/proxy rule fires on delimiter injection pattern in OAuth parameters.
Injects shell command substitution syntax into the scope parameter of the OAuth endpoint to test argument/command smuggling detection.
Command
curl -k -s "https://dsm-lab.local:5001/webapi/auth.cgi?api=SYNO.API.Auth&method=login&scope=\$(id);OAuth&client_id=x" Cleanup
echo 'no cleanup required' Expected Telemetry
Web request logged with '$(id)' and ';' delimiters in OAuth-related parameters.
Expected Detection
Detection matches shell metacharacter and delimiter patterns in OAuth API request.
Uses URL-encoded whitespace and dashes to smuggle an additional argument into the OAuth client_id parameter, simulating CWE-88 exploitation.
Command
curl -k -s "https://dsm-lab.local:5001/webman/sso/SSOOauth.cgi?client_id=app%20--config=/etc/passwd&grant_type=authorization_code" Cleanup
echo 'no cleanup required' Expected Telemetry
Access log entry containing '%20--config=' in the OAuth client_id parameter.
Expected Detection
Rule flags encoded whitespace followed by an option delimiter in OAuth parameters.