Skip to content

[API] Harden match events gateway authentication and message validation #371

@Flegma

Description

@Flegma

Summary

The match events WebSocket gateway needs stronger authentication checks and message validation to prevent unauthorized or malformed data from being processed.

Tasks

  • Strengthen authentication verification on WebSocket connections
  • Add server identity validation for incoming events
  • Implement runtime message schema validation
  • Add message size limits to prevent resource exhaustion

Impact

Could allow unauthorized data to be processed through the gateway.

Details

Full details in internal audit document. Finding IDs: SEC-API-02, SEC-API-03, WS-API-01, WS-API-02


Related Issues (Input Validation Pattern)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0-criticalSecurity & data loss riskaudit-2026-03From March 2026 codebase auditsecuritySecurity vulnerability or hardeningservice:api5stackgg/api service

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions