Repository navigation
Closed
Labels
pentestFrom penetration testing reportpriority-p0Blocking/urgentsecuritySecurity vulnerabilityseverity-highHigh severity security finding
Milestone
Description
Pentest Finding 3.1.3 — High (CVSS 8.5)
CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected Endpoints (80+ endpoints across multiple routers)
Operational Data (admin-only data accessible by any user)
GET /api/ops/auth-report,/api/ops/costs,/api/ops/fleet/status,/api/ops/fleet/healthGET /api/ops/schedules,/api/ops/alertsPOST /api/ops/alerts/{id}/acknowledgeGET /api/observability/metrics,/api/observability/statusGET /api/credentials/encryption-key← master encryption key exposedGET /api/system-agent/status
Cross-Tenant Agent Operations (any user can act on any agent)
DELETE /api/agents/{name}/chat/history— wipe chat historiesPUT /api/agents/{name}/mode— alter agent AI modelsPOST /api/agents/{name}/queue/clear— disrupt task queuesPOST /api/agents/{name}/credentials/inject— inject credentialsPOST /api/agents/{name}/credentials/export— export credentialsPUT /api/agents/{name}/skills— modify agent skillsPOST /api/agents/{name}/chat— chat with other users' agentsPOST /api/agents/{name}/task— submit tasks to other users' agents
Cross-Tenant Process/Execution Operations
GET /api/processes— see all processes (not just own)POST /api/processes/{id}/archive— archive others' processesGET /api/executions— see all executionsPOST /api/executions/{id}/cancel— cancel others' executionsPOST /api/executions/{id}/retry— retry others' executionsGET /api/notifications— see all notificationsPUT /api/alerts/thresholds/{id}— modify others' alert thresholds
(Full list of 80+ endpoints in pentest report section 3.1.3)
Impact
Authenticated users can view, modify, and destructively interact with agents and operational data not belonging to them. This horizontal privilege escalation breaks user isolation. Critically:
- Low-privileged users can extract the platform's master encryption key via
GET /api/credentials/encryption-key - Users can wipe chat histories, alter AI models, and disrupt task queues of agents they don't own
- Complete compromise of encrypted secrets across the entire application
Steps to Reproduce
# As non-owner user, get auth report for ALL agents
GET /api/ops/auth-report
Authorization: Bearer {USER_TOKEN}
# Returns data for all agents including ones user cannot access
# As non-owner user, delete another user's chat history
DELETE /api/agents/hello/chat/history
Authorization: Bearer {NON_OWNER_USER_TOKEN}
# Returns 200 OK — history deletedRemediation
- Apply server-side access control for all queries — do not rely only on UI restrictions
- Implement ownership checks (not just
can_user_access_agent) on all mutation endpoints - Restrict ops/observability/credentials endpoints to admin-only access
- Use a single application-wide mechanism for enforcing access controls
- Make it mandatory for developers to declare allowed access for each resource, deny by default
- Thoroughly audit and test access controls
References
Source: UnderDefense Web Pentest Report, March 2026
Metadata
Metadata
Assignees
Labels
pentestFrom penetration testing reportpriority-p0Blocking/urgentsecuritySecurity vulnerabilityseverity-highHigh severity security finding
Activity
vybe commentedon Mar 26, 2026
Implementation Complete
Hardened 39 endpoints across 11 routers to enforce proper server-side access control.
Changes by Category
Admin-only enforcement (22 endpoints):
ops.py— fleet/status, fleet/health, schedules, costs, auth-report, alerts, alert acknowledgeobservability.py— metrics, statussystem_agent.py— statusalerts.py— threshold set, threshold deleteOwner-only enforcement (10 endpoints):
credentials.py— inject, export, import (upgraded fromAuthorizedAgent→OwnedAgent)chat.py— DELETE chat historyagents.py— queue/clear, queue/releaseskills.py— PUT skills, assign, unassign, injectAccess checks added (7 endpoints):
agents.py— stats, queue GET (addedAuthorizedAgentByName)skills.py— GET skills (addedAuthorizedAgentByName)notifications.py— list filtered by accessible agents; get/acknowledge/dismiss checkcan_user_access_agentprocesses.py— archive, new-version (added RBAC viaProcessAuthorizationService)executions.py— events, step output, costs, analytics (addedcan_view_execution)Test Coverage
test_access_control.py— creates a non-admin user, verifies 403 on all hardened endpointsValidation
GET /api/credentials/encryption-keywas already admin-only (confirmed)PUT /api/agents/{name}/modedoes not exist (confirmed — issue reference outdated)Not in scope (separate concerns)
GET /api/agents/slotsreturns all agent slots (intentional for dashboard polling)fix(security): Broken access control — enforce admin/owner checks on …
merge: Resolve changelog conflict after merging upstream/main
merge: integrate upstream/main into feature branch
merge: Resolve conflicts with upstream/main (docs only)