deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

Synology DSM OAuth argument injection (CVE-2026-120382) allows remote file read and write

Synology advisory SA-26:21 fixes an argument-injection flaw in DiskStation Manager's OAuth API that let remote attackers read or write files and cause denial of service; each DSM release line now has a fixed build.

Synology DSM OAuth argument injection (CVE-2026-120382) allows remote file read and write

What Synology disclosed

Synology has issued security advisory SA-26:21 for DiskStation Manager (DSM), the operating system behind its NAS appliances. The advisory covers an argument-injection vulnerability in the OAuth API, tracked as CVE-2026-120382. According to a dev.to write-up that examines the advisory, an attacker with remote access could read or write arbitrary files and trigger denial-of-service conditions. Synology identifies the affected release lines and the overall impact; it does not claim that any specific deployment was compromised.

Which builds are affected

CVE-2026-120382 affects DSM versions 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. Each maintenance line has its own fixed build, which has a practical consequence: the full build string shown in DSM must match the advisory's minimum version, and a matching major version alone is not enough to consider a host patched.

How argument injection works

The core failure is a lost boundary between data and command. A value the application treats as inert — a redirect parameter, a client identifier, a path fragment — reaches a command parser and is reinterpreted as an option or separator, changing what the underlying command does. The dev.to analysis argues the danger is not shell syntax that looks familiar but whether untrusted input can change the meaning of an argument vector, a file path or an internal command.

OAuth widens that surface because a sign-in passes through several states before anything sensitive happens: authorization requests, callback handling, token exchange and account linking. The write-up recommends strict per-state handling — a fixed method, redirect scheme and parameter policy for each — and having the service call a typed internal API instead of assembling a command string and spawning a subprocess with it.

Reachability determines the risk

Not every DSM box is equally exposed, and the write-up frames two questions as decisive: whether the OAuth API is reachable from an untrusted network, and whether the appliance runs a fixed build. The suggested review is to enumerate every DSM host with its build, its management interfaces and the networks that can reach the OAuth API, then inspect reverse-proxy rules, QuickConnect settings and remote-access portals. From there, shut off unused packages and web services, put DSM administration behind a VPN or an administrative jump host, and, if the OAuth API is not needed, filter it at the edge and delete stale application registrations.

Reviewing logs for signs of probing

A rejected request is not the same as a harmless one. The write-up notes that an HTTP 400 response can still indicate that a malformed request reached a parser, so it recommends scanning DSM logs for OAuth callback errors, odd query strings, unexpected file access and process failures, then correlating those requests with account changes, package installations and file activity. Logs should also be stored off the appliance, so whoever controls the box cannot wipe the only copy.

Patching and verifying the fix

Applying the update is not the whole job. Updating through Package Center, rebooting and logging back in successfully does not, by itself, prove that the vulnerable service was replaced; the build string shown in DSM needs to be compared against the advisory's fixed versions. For fleets, the write-up suggests pulling build numbers from the management API or an inventory database instead of relying on screenshots. Afterwards, a normal OAuth sign-in should complete and land on its intended destination, a malformed callback should be rejected without any command being invoked, and Web Station, File Station and account services should be re-checked to confirm nothing regressed.

Hardening after the update

The remaining advice is conventional but pointed: give remote-access packages only the privileges they need, keep administrator accounts separate from daily-use accounts, require MFA for DSM administrators, restrict SSH, disable unused file protocols, and snapshot the configuration files that define OAuth clients and reverse proxies. Back up the appliance configuration and confirm the restore path works before changing anything.

Why it matters

A NAS is often where backups and shared data live, and the OAuth API sits in the account and sign-in path rather than in an obscure corner of the platform. A remotely reachable argument-injection flaw there delivers arbitrary file read and write plus denial of service — close to a complete compromise primitive — on boxes reachable through QuickConnect, reverse proxies or port forwarding. Synology makes no claim of exploitation, so the right posture is neither alarm nor indifference: install the fixed build, verify it by build string, review exposure and logs, and treat the host's state as unknown until both checks are done.

  • #synology
  • #security
  • #nas
  • #oauth
  • #vulnerability

Related posts