Skip to content

Validate roomId in WebRTC signaling handlers #106

@shishir-21

Description

@shishir-21

Summary

The signaling handlers (offer, answer, ice-candidate) destructure roomId but do not validate it against active streams.

Problem

The server does not verify:

  • Whether the room exists
  • Whether the socket belongs to the room

Suggested Improvement

Before forwarding signaling messages, validate:

  • activeStreams.has(roomId)
  • socket.rooms includes the room

This would improve robustness and security.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions