Summary
OliveTin, a tool that exposes predefined shell commands via a web interface, contained a broken access control flaw in its KillAction RPC endpoint.
Even when guest authentication was required, unauthenticated users could directly invoke KillAction to terminate running actions, enabling unauthorized denial of service against legitimate command executions.
Affected context
This vulnerability appears in OliveTin deployments that:
- Expose the OliveTin web/API interface to untrusted networks or shared environments
- Rely on
authRequireGuestsToLogin: trueto prevent unauthenticated usage - Use long-running or critical actions that may be disrupted by premature termination
In these conditions, the KillAction RPC endpoint remains callable by unauthenticated users, even though the dashboard UI itself is correctly protected.
Exploit preconditions
- Attack surface: Network-accessible OliveTin HTTP/RPC interface
- Required access: Ability to reach the OliveTin instance over the network (no valid session or credentials required)
- Trigger point: Sending a crafted KillAction RPC request targeting an existing running action
- Why exploitation is possible: The authorization checks applied to the dashboard and general guest access are not consistently enforced on the KillAction RPC endpoint, allowing an unauthenticated caller to invoke functionality reserved for authenticated users.
Why this happens
The underlying issue is inconsistent authorization enforcement on a privileged RPC operation.
While the configuration option authRequireGuestsToLogin: true correctly restricts access to the dashboard, the KillAction endpoint does not fully honor this policy, leaving a privileged action exposed.
This maps to CWE-284: Improper Access Control, and is closely related to CWE-862: Missing Authorization and CWE-863: Incorrect Authorization, where one or more endpoints fail to verify that the caller is an authenticated and authorized user before executing sensitive operations.
Potential impact
- Unauthenticated users may terminate legitimate long-running actions.
- Operational workflows that depend on OliveTin-managed actions could be disrupted.
- Repeated exploitation can result in a sustained denial of service against critical automations or maintenance tasks.
- Loss of trust in automation outcomes if actions are unexpectedly killed mid-execution.
General mitigation guidance
Effective mitigation centers on enforcing consistent, centralized authorization for all privileged endpoints and operations.
Common patterns include:
- Applying the same authentication and authorization checks to every RPC/API endpoint as are used for the main dashboard, especially for operations that modify or terminate actions.
- Implementing an explicit access-control layer where each action (including KillAction) defines required roles or permissions, and verifying these before the action is executed.
- Designing configuration flags like
authRequireGuestsToLoginso they govern all relevant code paths through a single enforcement mechanism rather than per-endpoint logic. - Restricting network exposure of the OliveTin interface (for example, limiting it to management networks or using a reverse proxy with strong authentication in front).
- Adopting least-privilege defaults so that unauthenticated or low-privilege users cannot invoke management or termination commands by default.
How teams detect issues like this
Detection typically involves a mix of code-level and behavior-level checks:
- Static analysis and review: Search for handler functions or RPC endpoints that modify or terminate actions and verify that they consistently call centralized authorization routines. Flag any handler that can be triggered without an explicit authentication/authorization check.
- Configuration-aware tests: Build automated tests that simulate unauthenticated requests to all management operations (start, stop, kill, modify) and assert that they are rejected when guest login is required.
- Access-control policy enforcement: Use security linters or policy-as-code tools to enforce rules such as "no endpoint under /rpc may be invoked without authentication middleware."
- Runtime monitoring: Inspect access logs for patterns of unauthenticated requests successfully invoking management or termination operations, and set alerts on such anomalies.

