Skip to content
CVE-2026-120382

Synology DSM OAuth API Argument Delimiter Injection (CVE-2026-120382)

Initial Access Execution Last updated:

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.

Vulnerability Intelligence

Theoretical

Weakness (CWE)

Timeline

Disclosed
November 23, 2026

CVSS

9.8
Critical (9.0–10)
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What is CVE-2026-120382 Synology DSM OAuth API Argument Delimiter Injection (CVE-2026-120382)?

Synology DSM OAuth API Argument Delimiter Injection (CVE-2026-120382) (CVE-2026-120382) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for Synology DSM OAuth API Argument Delimiter Injection (CVE-2026-120382), covering the data sources and telemetry it touches: IIS/Web proxy logs, Reverse proxy access logs fronting DSM. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Execution
Microsoft Sentinel / Defender
kusto
// df00tech DF00-51d408bb20 · https://df00tech.com/detections/CVE-2026-120382 · licence: https://df00tech.com/detections/licence
let suspiciousDelimiters = dynamic(["--","; ","&&","| ","$(","`","%20-","+-","\\x2d"]);
let oauthPaths = dynamic(["/webman/sso/","/webapi/entry.cgi","/webman/login.cgi","/oauth","/webapi/auth.cgi"]);
W3CIISLog
| where csUriStem has_any (oauthPaths) or csUriStem has "OAuth"
| extend fullReq = strcat(csUriStem, "?", tostring(csUriQuery))
| where fullReq has_any (suspiciousDelimiters) or fullReq matches regex @"(?i)(client_id|redirect_uri|scope|grant_type)=[^&]*(\s|--|%20|;|\$\(|`)"
| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, scStatus, csUserAgent, sIP
| summarize RequestCount=count(), SampleQueries=make_set(csUriQuery, 10), Statuses=make_set(scStatus,10) by cIP, csUserAgent, bin(TimeGenerated, 10m)
| where RequestCount >= 1

Flags HTTP requests to Synology DSM OAuth/SSO API endpoints whose parameters contain argument-delimiter injection patterns such as option dashes, shell metacharacters, or encoded whitespace.

high severity medium confidence

Data Sources

IIS/Web proxy logs Reverse proxy access logs fronting DSM

Required Tables

W3CIISLog

False Positives

  • Security scanners and vulnerability assessment tools probing OAuth endpoints
  • Legitimate OAuth clients using redirect URIs that contain hyphens or encoded spaces in state parameters
  • Penetration testing activity against the DSM appliance

Query fingerprint DF00-51d408bb20 · licence

Sigma logsource & community rules

The detection logic for Synology DSM OAuth API Argument Delimiter Injection (CVE-2026-120382) (CVE-2026-120382) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: network_connection
  product: windows

Browse the community-maintained Sigma rules for this technique:


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.

  1. 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.

  2. Test 2 Shell metacharacter injection in OAuth scope parameter

    Expected signal: Web request logged with '$(id)' and ';' delimiters in OAuth-related parameters.

  3. Test 3 Encoded whitespace argument smuggling probe

    Expected signal: Access log entry containing '%20--config=' in the OAuth client_id parameter.


Response Playbook

Triage

  1. 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.
  2. 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.
  3. 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.
  4. Check the source IP reputation and whether it has previously authenticated legitimately to the appliance.

Containment

  1. Block the offending source IP(s) at the perimeter firewall and restrict DSM administrative/OAuth interface exposure to trusted networks or VPN only.
  2. If exploitation is confirmed, isolate the Synology appliance from the network and disable the OAuth/SSO service pending patching.
  3. 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

  1. Preserve DSM web access logs (/var/log/nginx, synoscgi logs), auth logs, and any command/shell execution telemetry for the exploitation window.
  2. 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.

Hunting — KQL
kql
// 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)
Hunting — SPL
spl
``` 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

Test 1 Simulated OAuth argument delimiter injection via redirect_uri
linux

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

bash
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

bash
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.

Test 2 Shell metacharacter injection in OAuth scope parameter
linux

Injects shell command substitution syntax into the scope parameter of the OAuth endpoint to test argument/command smuggling detection.

Command

bash
curl -k -s "https://dsm-lab.local:5001/webapi/auth.cgi?api=SYNO.API.Auth&method=login&scope=\$(id);OAuth&client_id=x"

Cleanup

bash
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.

Test 3 Encoded whitespace argument smuggling probe
linux

Uses URL-encoded whitespace and dashes to smuggle an additional argument into the OAuth client_id parameter, simulating CWE-88 exploitation.

Command

bash
curl -k -s "https://dsm-lab.local:5001/webman/sso/SSOOauth.cgi?client_id=app%20--config=/etc/passwd&grant_type=authorization_code"

Cleanup

bash
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.

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections