Skip to content

Websocket endpoint has no read limit #2631

Description

@jholdstock

The WebSocket read loop in internal/rpc/jsonrpc/server.go calls wsc.conn.ReadMessage() without a prior SetReadLimit() call. The gorilla/websocket library defaults to no read limit. HTTP POST requests are properly capped at 4MB via MaxBytesReader, but WebSocket messages have no equivalent bound.

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