[pingrelay] Dashboard SSE endpoints have no authentication #26

Closed
opened 2026-02-25 03:03:28 +00:00 by ash · 0 comments
Owner

Security Concern

The SSE dashboard endpoints (/sse/endpoints, /sse/stream, etc.) and the sseDeleteEndpoint handler have no authentication. They operate on a hardcoded "demo" org.

Impact

  • Anyone can list all demo endpoints
  • Anyone can delete any endpoint via DELETE /sse/endpoints/{id}
  • Anyone can create endpoints via POST /sse/endpoints
  • The SSE stream exposes all captured webhook data in real-time

Recommendation

Either:

  1. Add auth to dashboard SSE endpoints (session cookies or API keys)
  2. If demo mode is intentional, rate-limit and add a warning banner
  3. Add ownership checks to sseDeleteEndpoint

Found by red team audit 2026-02-25.

## Security Concern The SSE dashboard endpoints (`/sse/endpoints`, `/sse/stream`, etc.) and the `sseDeleteEndpoint` handler have **no authentication**. They operate on a hardcoded `"demo"` org. ### Impact - Anyone can list all demo endpoints - Anyone can delete any endpoint via `DELETE /sse/endpoints/{id}` - Anyone can create endpoints via `POST /sse/endpoints` - The SSE stream exposes all captured webhook data in real-time ### Recommendation Either: 1. Add auth to dashboard SSE endpoints (session cookies or API keys) 2. If demo mode is intentional, rate-limit and add a warning banner 3. Add ownership checks to `sseDeleteEndpoint` Found by red team audit 2026-02-25.
ash closed this issue 2026-03-26 16:38:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ash/ideas#26
No description provided.