Summary
PraisonAI's call server exposes a network-facing agent control API without authentication when the CALL_SERVER_TOKEN is not configured, due to a fail-open authentication helper.
In this state, any reachable client can list, inspect, invoke, and unregister agents over the network, effectively gaining remote control of the agent environment whenever the call server is started without a token.
Affected context
This vulnerability arises in PraisonAI deployments that:
- Run the bundled call server component bound to
0.0.0.0or otherwise reachable over the network - Rely on the
praisonai.api.callmodule, which mounts thepraisonai.api.agent_invokerouter - Start the call server without explicitly setting the
CALL_SERVER_TOKENenvironment variable
In such configurations, the exposed agent control API may be accessible from other hosts on the same network, or from the public internet if the service is externally routed.
Exploit preconditions
- Attack surface: Network-accessible call server endpoints provided by
praisonai.api.callandpraisonai.api.agent_invoke - Required access: Ability to send HTTP requests to the call server over the network (no credentials required when
CALL_SERVER_TOKENis unset) - Trigger point: Invocation of agent-control endpoints that depend on the
verify_token()helper for access control - Why exploitation is possible: The authentication helper is implemented to fail open when the
CALL_SERVER_TOKENconfiguration is missing, so all protected routes effectively bypass authentication under misconfiguration
Why this happens
The core issue is an access control design flaw where authentication and authorization logic depends on a configuration value, but is implemented in a fail-open manner.
The verify_token() helper, which is intended to enforce token-based access to sensitive agent-control operations, treats an unset CALL_SERVER_TOKEN as a non-error condition and allows requests to proceed.
This maps to CWE-306: Missing Authentication for Critical Function and CWE-284: Improper Access Control, because critical operations—such as listing, invoking, and unregistering agents—lack enforced authentication under a common deployment condition.
Conceptually, the system assumes a secure configuration but does not enforce it, turning a configuration omission into full unauthenticated access to powerful API functions.
Potential impact
- An attacker could remotely list available agents and inspect their metadata and instructions, potentially revealing sensitive prompts or operational logic.
- An attacker could invoke agents arbitrarily, causing unintended actions, unauthorized processing, or resource consumption.
- An attacker could unregister or disable agents, leading to denial of service or disruption of multi-agent workflows.
- An attacker could manipulate agent behavior indirectly by orchestrating sequences of invocations that affect downstream systems or users.
- An attacker could use the exposed control plane as an entry point to broader system compromise, depending on what the agents are permitted to access.
General mitigation guidance
Mitigation focuses on enforcing strict, explicit authentication for all critical control-plane operations and avoiding fail-open behavior in authentication helpers.
Useful defensive patterns include:
- Designing authentication helpers to fail closed when required configuration (such as tokens or keys) is missing, ensuring critical routes are inaccessible until security settings are in place.
- Applying centralized access control for agent management endpoints, rather than relying on ad hoc checks at individual routes.
- Treating environment-based secrets and configuration as mandatory for network-exposed services, and validating their presence at startup with clear failure modes.
- Restricting network exposure of control-plane services by binding to loopback interfaces by default and requiring explicit configuration to listen on external interfaces.
- Applying least-privilege principles so that even authenticated tokens grant only the minimal set of agent operations required for a given use case.
How teams detect issues like this
Detection typically combines configuration validation, runtime checks, and code-level review:
- Implement startup-time checks that verify required security configuration (such as
CALL_SERVER_TOKEN) is set, and emit warnings or fail fast when missing. - Use configuration scanning or policy-as-code tools to flag services that bind to
0.0.0.0and expose administrative or control-plane APIs without authentication. - In code review, look for authentication and authorization helpers that treat missing credentials or configuration as success, or that are inconsistently applied to sensitive routes.
- Apply static analysis rules to identify critical functions (for example, agent listing, invocation, or deregistration) that lack enforced authentication or rely on weak conditional checks.
- Monitor logs for anonymous or unauthenticated access patterns to agent-control endpoints, especially from unexpected network locations, as indicators of potential misuse.

