Summary
taOS's skill-execution endpoint allows any authenticated user, including non-admins, to invoke built-in skills without checking their role, skill ownership, or agent assignment. When the code execution skill is available, a user may submit Python code that runs on the host with the permissions of the taOS backend process.
Affected context
The issue occurs in taOS's POST /api/skill-exec/{skill_id}/call endpoint, which executes built-in skills. Risk arises when an authenticated user's request can reach a skill without authorization checks for administrative role, skill ownership, or agent assignment. The built-in code_exec skill runs Python code through a subprocess, making the missing checks especially consequential.
Exploit preconditions
- Attack surface: The taOS skill-execution API endpoint
- Required access: A valid authenticated session; administrator privileges are not required
- Trigger point: A request to invoke a built-in skill, such as
code_exec - Why exploitation is possible: The endpoint does not verify the user's role, ownership of the skill, or assignment to the relevant agent before executing user-supplied code
Why this happens
The endpoint performs a sensitive operation without enforcing authorization. This maps to CWE-862: Missing Authorization: the application fails to check whether the authenticated user is permitted to invoke a skill. Because the code execution skill passes supplied Python to a subprocess, bypassing that authorization boundary can expose host-level command execution under the backend process account.
Potential impact
- An authenticated non-admin user may execute arbitrary Python as the taOS backend process user.
- An attacker could access or modify data available to that process.
- A compromised backend process could be used to disrupt taOS or its host environment.
- The extent of further access could depend on the process's privileges and deployment isolation.
General mitigation guidance
Mitigation generally focuses on enforcing authorization at the point where sensitive skills are invoked.
Common defensive patterns include:
- Applying explicit role, ownership, and agent-assignment checks on every skill-execution request.
- Denying access by default and granting only the permissions required for each skill.
- Limiting or isolating code-execution capabilities, and avoiding execution of user-controlled code where possible.
- Running the backend with least privilege and restricting its access to host resources.
- Validating authorization server-side rather than relying on client-provided identifiers or UI controls.
How teams detect issues like this
High-level detection approaches include:
- Reviewing API handlers for sensitive operations that lack centralized authorization checks.
- Using static analysis to identify routes that invoke subprocesses or code-execution functions without permission enforcement.
- Auditing logs for skill-invocation requests by non-admin users, especially calls to code-execution skills.
- Enforcing policy checks in CI or code review for endpoints that execute skills, subprocesses, or other privileged actions.

