Rails Secrets Don't Un-Leak, and Your UniFi Controllers Aren't in the CMDB
Two exploited-class fixes have landed whose real remediation the deploy cannot reach: one finishes at credential rotation, the other at finding the controllers nobody inventoried.
Patching stops the reads. Rotation ends the incident.
An RCE incident ends when the fixed version is running. A secrets-disclosure incident ends when the stolen credentials are useless. CVE-2026-66066 hands an unauthenticated caller whatever the Rails process can read: SECRET_KEY_BASE, master.key and credentials, object-storage keys, any signing material sitting in the app. After the patch, a signed cookie or JWT minted under a leaked key still verifies. A leaked S3 key still authenticates. Risky Business has this right: rotation ends this incident, and the deploy only stops the reads.
Rails shipped the fix at the start of August, so the live variable is when each environment got it. Reconstruct that window before closing the ticket: the date the fixed release actually landed per environment, which of those services answered from the internet before that date, and whether Active Storage sat in the request path at all. The subsystem is on by default, so absence needs proof. grep finds the obvious call sites; only the request path tells you whether it was reachable unauthenticated.
Sequence the rotation by blast radius
A leaked signing key and a leaked bucket key are two incidents wearing one CVE. The signing key forges sessions and tokens against your own app. The storage key reads and writes data directly, outside your request path and outside your logs. Rotate both, plus any credential the app could enumerate downstream. Cookies and sessions minted under the old key will stop verifying. Plan that user-visible logout deliberately rather than discovering it in a support queue.
The other patch is a discovery problem
Ubiquiti's 21 critical fixes cover UniFi OS Server plus three UniFi applications, and the impact classes are the bad ones: remote command execution, authentication bypass, privilege escalation. The controller pushes configuration, firewall and NAT rules, VPN topology, DNS resolution, and firmware to every adopted device. Auth bypass chained to command execution collapses that boundary in one step, with no lateral movement required.
Real exposure runs ahead of the advisory because controllers live in shadow infrastructure: a branch office nobody inventories, or an engineer's home network with a tunnel into corp. Asset inventories undercount them structurally. The relayed advisory detail also carries no CVE IDs and no CVSS vectors, so pull the vendor bulletin directly before scoping the change window.
Where the two stories agree
| Item | Exploited? | Auth needed | What the deploy fixes | What it leaves open |
|---|---|---|---|---|
| Rails Active Storage — CVE-2026-66066 | Yes, in the wild | None | Further reads of app secrets | Keys already taken; forged tokens still verify |
| UniFi OS Server + 3 apps — 21 critical | Not reported | Bypassable | Command exec, privesc, bypass paths | Controllers outside inventory; internet-facing management planes |
Both remediations gate on inventory you either already have or will spend the week building: a credential inventory and an asset inventory. Both sources arrive there independently, from opposite ends of the stack. That is the pattern worth carrying past this week: patch velocity is cheap; enumeration and revocation are the constraint.
Until the keys are rotated, the patched app still trusts tokens minted under the old one. The controller inventory is the one most teams lack, and the next disclosure bug will bill them for it.
What to do
Grep every Rails service for Active Storage this week, confirm the patched release in each environment, then rotate SECRET_KEY_BASE, master.key/credentials, object-storage keys, and signing material for anything internet-reachable before the fix landed.
Enumerate every UniFi OS Server instance outside the CMDB — branch offices, hardware labs, home networks with tunnels into corp — patch in an out-of-band window this week, then scan externally to confirm no management plane answers from the internet.
Add controller-class assets to a tier-0 patch SLA this quarter, with owner, discovery method, and external-exposure check recorded per instance.