You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pentest Follow-up — Found during CSO audit for #180
Severity: HIGH
Affected Endpoints (all unauthenticated)
Method
Path
File
Line
GET
/api/triggers
routers/triggers.py
107
GET
/api/triggers/webhook/{trigger_id}/info
routers/triggers.py
210
GET
/api/triggers/schedules
routers/triggers.py
267
GET
/api/triggers/schedules/{schedule_id}
routers/triggers.py
311
GET
/api/triggers/process/{process_id}/schedules
routers/triggers.py
360
Note: POST /api/triggers/webhook/{trigger_id} (line 138) already has optional HMAC secret validation — the issue here is the GET endpoints leaking trigger IDs and configuration.
Impact
An unauthenticated attacker can enumerate all triggers, discover trigger IDs, and learn webhook configurations. With trigger IDs, they can invoke webhook triggers (if no secret is configured).
Evidence
routers/triggers.py does not import any auth dependency at all.
Remediation
Add Depends(get_current_user) to all GET trigger endpoints. For POST /webhook/{trigger_id}, consider making the HMAC secret mandatory rather than optional.
Activity
vybe commentedon Mar 30, 2026
Fixed
All trigger listing endpoints now require authentication via
CurrentUserdependency:GET /api/triggers—current_user: CurrentUser(line 110)GET /api/triggers/webhook/{id}/info—current_user: CurrentUser(line 213)GET /api/triggers/schedules—current_user: CurrentUser(line 270)GET /api/triggers/schedules/{id}—current_user: CurrentUser(line 314)GET /api/triggers/process/{id}/schedules—current_user: CurrentUser(line 363)Fixed in commit
71ac52c(fix(security): Add authentication to approvals and triggers endpoints #173).