Repository navigation
Closed
Labels
pentestFrom penetration testing reportpriority-p0Blocking/urgentsecuritySecurity vulnerabilityseverity-highHigh severity security finding
Milestone
Description
Pentest Finding 3.1.2 — High (CVSS 8.6)
CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected Endpoints (15 total, all unauthenticated)
POST /api/internal/activities/trackPOST /api/internal/activities/{id}/completeGET /api/approvalsGET /api/approvals/{id}GET /api/approvals/execution/{exec_id}/step/{step_id}POST /api/approvals/{id}/approvePOST /api/approvals/{id}/rejectGET /api/triggersPOST /api/triggers/webhook/{id}GET /api/triggers/webhook/{id}/infoGET /api/triggers/schedulesGET /api/triggers/schedules/{id}GET /api/triggers/process/{id}/schedules
Impact
Unauthenticated attackers can completely bypass critical security boundaries to:
- View, approve, or reject sensitive human-in-the-loop agent actions without any credentials
- Inject fabricated activity records into the platform via internal endpoints
- Undermine integrity of the audit trail and poison forensic evidence
- Permit unauthorized execution of highly sensitive, restricted operations
The decided_by field is hardcoded to "admin", meaning unauthenticated approvals appear as admin-authorized.
Steps to Reproduce
# Track activity without auth
POST /api/internal/activities/track
{"agent_name": "work", "activity_type": "chat_start", "description": "injected from outside"}
# Returns 200 OK
# Approve without auth
POST /api/approvals/{id}/approve
# Returns 200 OKRemediation
- Add
current_user: User = Depends(get_current_user)to every endpoint in approval, trigger, and internal routers - Replace hardcoded
decided_by = "admin"with the authenticated user's identifier - Bind internal router to Docker bridge network only (not public-facing port)
- Add shared secret header (
X-Internal-Token) validated against an env var as defense-in-depth - Validate that
agent_namecorresponds to a known, running container before accepting activity records - Add integration tests asserting 401 for unauthenticated approval requests
References
Source: UnderDefense Web Pentest Report, March 2026
Metadata
Metadata
Assignees
Labels
pentestFrom penetration testing reportpriority-p0Blocking/urgentsecuritySecurity vulnerabilityseverity-highHigh severity security finding
Activity
fix(security): Add authentication to approvals and triggers endpoints (…
fix(cornelius): trim the seed vault's claims too; close review gaps (#…
fix: Cornelius template + seed vault declare only what the bundle shi…