Docs › Releases › 1.13 › Release notes
Recurnix 1.13 release notes
Released 2026-07-31. Recurnix 2.11 is newer.
Impersonation is the most powerful thing a support agent can do, and Recurnix fenced it with four words.
Signing in as a client is a genuinely useful feature: the fastest way to answer "it doesn't work on my screen" is to look at their screen. Recurnix has had it since v0.72, gated on a permission, logged at both ends, with a badge on screen the whole time.
The fence around it was this:
private const BLOCKED = ['password', '2fa', 'erasure', 'users.invite'];
Four substrings, matched against route names. Sensible-looking. It is not a fence.
What it actually let through
We walked every route the application registers — not a list somebody typed, the live route table — through the old rule and the new one:
83 portal routes: 36 read-only, 47 that write
old rule read-only writes allowed
routes refused 13 47 26
WRITES PERMITTED 37 0 23
Thirty-seven of the forty-seven writes were available to anyone impersonating. Sixteen of them do something that survives the session:
portal.profile.update— the client's email addressportal.services.sso— a signed door into their hosting control panel, a different system entirelyportal.profile.export— their whole record, in one downloadportal.users.revoke— lock the real owner's colleagues out (onlyinvitewas named)portal.contacts.*— send invoice copies to an address of your choosing, arriving long after you have goneportal.tickets.cc.*— all future correspondenceportal.methods.*— payment instruments
The one that matters
Email is where password resets arrive. So the sequence is: impersonate, change the address, stop impersonating, ask for a password reset. You now own the account, after the session ended and the badge went away.
We did not reason about this. We did it, against the shipped code, through the real route, the real controller and the real validator:
-- PATCH /portal/profile (portal.profile.update) while impersonating --
HTTP status 302
the request was carried out
email before rx-h7-victim@recurnix.invalid
email now rx-h7-attacker@recurnix.invalid
ADDRESS CHANGED YES
-- after the impersonation has ended --
a password reset for rx-h7-attacker@… reaches client #40
the real owner's address still works NO
One thing we expected to find and did not: a blind audit trail. The change was recorded, correctly, against the operator. That is worth saying plainly, because the temptation in a security note is to make the hole sound deeper than it is. The problem was never that Recurnix failed to write it down. It is that writing it down is not preventing it — and that "admin updated client" reads like an ordinary Tuesday.
But the substrings were not really the point
A denylist cannot cover a route that does not exist yet. Every portal feature added after v0.72 became impersonatable the moment it shipped, in silence, with nobody deciding anything. That is the defect worth fixing, and you cannot fix it by adding a fifth substring.
So the rule is inverted, and it fails closed. While impersonating, the portal is read-only. You see exactly what the client sees. An administrator can allow writes deliberately, in Settings, and even then the handful of actions that outlive the impersonation stay refused — the sign-in email address, passwords, two-factor, payment methods, who else can reach the account, where invoices are copied.
Two of the refused actions are reads, which is unusual enough to state: exporting the client's record and the single-sign-on hand-off both give you something that keeps working after you have gone. That is what makes them different from looking.
And the way out is never fenced. Stop impersonating and Log out are allowed before any other rule is consulted, no matter how anything is configured. A policy that can lock somebody INTO an impersonated session is worse than the hole it closes.
The session now ends by itself
v0.72 recorded impersonated_at on every impersonation and then never read it back. Recording a timestamp is not a limit until something enforces it, so an impersonated session lasted as long as the browser session — refreshed by every request, which is to say indefinitely.
It is enforced now, against a limit you set: Settings → Security → End an impersonated session after, thirty minutes by default, eight hours the ceiling. The session ends whether or not anyone remembered to stop it, and a session that cannot prove when it began counts as expired.
Two switches, in the admin area, where they belong
Allow changes, not just viewing is off out of the box. Read-only is the default you get without reading any documentation, which is the only default that matters.
How this was checked
Not by signing in as anybody — that means typing a password, and that is not something we do. A scratch client was created, the operator and the client were signed into their real guards, and a real PATCH /portal/profile was pushed through the actual middleware. Twice: once with the v0.72 middleware restored from git onto disk, once with the new one. The middleware file was checksummed before the swap and verified byte-identical afterwards; the scratch client was removed and the baseline re-asserted on both runs.
The old rule in the comparison was not reconstructed from memory either — it was read out of git at 3806c52 and applied to the live route table.
101 committed tests, 368 assertions. The middleware keeps a comment quoting the old denylist verbatim, so whoever reads it next knows what was there and why it went — and a test asserts that string survives as a comment and never as code, checked against the source with its comments stripped by the PHP tokeniser. The first version of that test failed against a correctly fixed file, because a substring search cannot tell prose from the real thing.