DEV Community

johnettagaweraks
johnettagaweraks

Posted on

Synology DSM OAuth API turned argument delimiters into file access

Synology DSM OAuth API turned argument delimiters into file access

Synology published SA-26:21 for an argument-delimiter weakness in the DSM OAuth API, tracked as CVE-2026-120382. The advisory says remote attackers could read or write arbitrary files and conduct denial-of-service attacks. The affected versions include DSM builds before 6.2.4-25556-9, 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.

Why an argument delimiter matters

A command argument is supposed to carry data. When an API passes user-controlled text into a command without separating arguments correctly, a delimiter can become syntax. The Synology advisory describes the result as arbitrary file read or write and denial of service. It does not publish the complete request format or a public exploit.

The OAuth API is part of an authentication workflow, so an exposed identity service and file operations share one reachable interface. That combination raises the consequence of a bug even when the immediate effect is not documented as code execution. A file read can expose configuration or secrets. A file write can corrupt service state or prepare a persistent change. A denial-of-service condition can remove authentication from dependent applications during an operational incident.

Systems in scope

DiskStation Manager is a storage operating system, but the affected component is a web API. NAS devices that publish DSM or the related OAuth service should be reviewed first. Devices restricted to an administrative VLAN have a smaller exposure path but still need the same build inventory. Models that cannot run the fixed release need a product-specific decision from Synology and a compensating control.

BeeStation OS is also named in the advisory title. Administrators should include it in the same update campaign instead of treating the issue as a DSM-only firmware task. Version strings from an update page should be verified against the advisory list, because visually similar build prefixes can be several updates apart.

Immediate remediation

Synology says administrators should update to the fixed build for their branch and, where an update is not available, deactivate the OAuth Service package. Disabling a package can interrupt single sign-on, so the identity owner should coordinate the change with every application that relies on it. Blocking the OAuth endpoints at a reverse proxy is another boundary only when the exact required API paths and health checks are understood.

After updating, review DSM audit logs for OAuth API requests, file changes and unusual service restarts. Correlate the source address with expected administrators and integration clients. Look for changes to local identities, application registrations, package state and shared-folder permissions. These are not proof of exploitation, but they are the records an incident responder needs to decide whether the flaw was attempted or used successfully.

Secrets and recovery

If unauthorized file access is suspected, preserve system logs before restarting the device. Review configuration backups, authentication keys, certificates and integration secrets that reside on the NAS. Rotate credentials for services that trusted the DSM identity provider. Check scheduled tasks, package changes and remote-access settings for persistence. Restore from a known-good configuration only after preserving evidence of the current state.

A NAS often acts as the recovery platform for other systems. A flaw that can modify files on that platform therefore deserves separate backup validation. Administrative credentials and backup repositories should not be stored only on the NAS. The recovery plan should identify who can rebuild the device and how dependent applications will authenticate while it is offline.

Keep identity services off the public edge

The durable control is network and identity separation. DSM administration and OAuth endpoints should be reachable from the networks that need them, with remote access mediated by a trusted gateway. Multi-factor authentication helps account security, but it does not repair an API that mishandles argument delimiters. The firmware update does. The exposure review determines how much time an attacker had to find the endpoint before it was installed.

References

Top comments (0)