Type: Incorrect Access Control
Product: SuperAGI
Affected versions: ≤v0.0.14
Affected component: superagi/controllers/agent.py:create_agent_with_config superagi/controllers/agent.py:create_and_schedule_agent superagi/controllers/agent.py:edit_schedule
Suggested CWE: CWE-284 (Incorrect Access Control)
Reference: TransformerOptimus/SuperAGI#1556
In SuperAGI v0.0.14 and prior, controller endpoints (/api/agents/create, /api/agents/schedule, /api/agents/delete, /api/agents/edit_schedule, /api/agents/stop_schedule) allow authenticated users from one organization to create, schedule, edit, stop, and delete agents belonging to a different organization's project. The endpoints accept a project_id parameter but do not verify that the project belongs to the authenticated user's organization.
Condensed from the authorized local validation used for the original report; local filesystem paths are replaced with <local-path>.
Root cause: The affected controller functions look up Project or AgentSchedule records by caller-supplied identifiers and proceed when the database object exists. They do not bind those ob Security impact: An authenticated user from one organization can create agents, create scheduled agents, or modify existing schedules under another organization's resources. This breaks tenant
Ro1ME