An invitation-only service checked whether a user was an administrator. The answer was serialized for an HTTP response, then used as though it were a Boolean decision.
A decision and its representation
Displaying an authorization result and enforcing it are two jobs. Here the same helper served both. A denial produced a nonempty response value. A settings handler treated the existence of that value as approval, so its behavior disagreed with other administrative routes. The lab confirmed that an ordinary member account could change its own role through that handler.
I would make the permission check return a Boolean and leave serialization to the HTTP handler. A regression test should submit a role-changing request as an ordinary account and verify both the denial response and the account’s unchanged role. A test that checks only the status endpoint would miss the state change.
Reading a VPN configuration
The VPN feature passed a user-selected filename through a shell to read a file. Serving an authorized configuration requires checking which file belongs to the caller and reading its contents. Both jobs can be done through a narrow file interface. The application can select an allowed file on the server and open it directly, with no shell involved at any step.
Three places to verify a repair
The application and host also shared credentials, and the running kernel lacked the OverlayFS fix for CVE-2023-0386. The machine’s kernel release string and Ubuntu’s package revisions use different version schemes, so they cannot be compared directly. I would check the effective privileges of the web service, separate the credentials, and confirm the kernel version after maintenance. The installed package inventory and the version booted on the machine are distinct pieces of evidence.