Docs › Releases › 1.13 › Changelog
Recurnix 1.13 changelog
Every change in 1.13, by kind. For what it means and whether to update, read the release notes.
Fixed
- Impersonation could be turned into permanent ownership of an account. While signed in as a client, a staff member could open Profile and change the client's email address. Email is the password-reset channel, so: impersonate, change the address, stop impersonating, ask for a reset, and the account is yours — after the impersonated session has ended and after the "Sign in as client" badge has gone. This was demonstrated end to end against the shipped code, not reasoned about: HTTP 302, address changed, and a password reset for the new address then resolved to the client.
- The fence was a denylist of four route-name substrings —
['password', '2fa', 'erasure', 'users.invite'], matched withstr_contains, with the HTTP verb ignored entirely. Walked over every route the application registers: it refused 13 of the 83 portal routes and permitted 37 of the 47 that write. Among themportal.profile.update(the email address),portal.services.sso(a signed door into the client's hosting control panel — a different system),portal.profile.export(the whole client record in one download),portal.users.revoke(lock the real owner's colleagues out; onlyinvitewas named),portal.contacts.(invoice copies to an address of your choosing, arriving long after you have gone),portal.tickets.cc.,portal.methods.*andportal.order.checkout. - An unnamed route returned
falsefrom that check — which is to say the old rule failed open. impersonated_atwas written and never read. v0.72 recorded when an impersonation began and nothing ever looked at it, so a session lasted as long as the browser session — refreshed by every request, which is to say indefinitely.- The Security settings page described the rule it no longer has. Its hint still promised that "password, two-factor, data-erasure and sub-user-invite actions stay blocked". Wording that outlives the behaviour it described is a lie with a good alibi.
Added
App\Services\Admin\ImpersonationPolicy— the replacement rule, pure and static: no container, no database, no session, so it cannot quietly depend on the state it is meant to police. While impersonating the portal is read-only. An operator may opt into writes, and even then the actions that outlive the impersonation stay refused.- Settings → Security → Staff impersonation: Allow changes, not just viewing (off by default) and End an impersonated session after (minutes) (30 by default, eight hours the ceiling). Both are read by the middleware on every request.
- A refusal message written for the person reading it, which says whether there is a setting that would have allowed the action — and does not pretend there is one when the answer is never.
- 23 more committed tests (101 total, 368 assertions).
Changed
- The rule now fails closed. 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. A write nobody has considered is now refused rather than permitted.
- Two reads are refused, which is unusual enough to state plainly.
portal.profile.exportandportal.services.ssoeach hand over something that keeps working after the impersonation ends, and that is what makes them different from ordinary looking. - Stopping is never fenced.
portal.impersonate.stopandportal.logoutare allowed unconditionally, before any other rule is consulted — a policy that can lock somebody INTO an impersonated session is worse than the hole it closes. - An impersonated session that cannot prove when it began is treated as expired.
ImpersonationService::startedAt()was added, because a timestamp nothing can read is not a limit.
Notes
- The audit trail was not blind, and this release does not claim it was. Measured: the change was recorded against the operator,
App\Models\User #1. The defect is not that Recurnix failed to write it down — it is that writing it down is not preventing it, and that what the log says ("admin updated client") reads as an ordinary day's work. - The old rule was not reconstructed from memory for the comparison. It was read out of git at
3806c52and applied to the live route table. - The middleware keeps a comment quoting the denylist verbatim, so the next person to read it knows what was there and why it went. A test asserts the string survives as a comment and never as code — checked against the file with its comments stripped by the PHP tokeniser, because a plain substring search cannot tell prose from the real thing. The first version of that test failed against a correctly fixed file for exactly this reason.