Skip to content

SEC: Unauthenticated trigger listing endpoints leak trigger IDs and config #205

Closed

Description

@AndriiPasternak31

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.

References

Source: CSO audit during #180 implementation

Activity

  1. vybe commented on Mar 30, 2026

    @vybe
    Contributor

    Fixed

    All trigger listing endpoints now require authentication via CurrentUser dependency:

    • 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions