Skip to content

SSH proxy panics on duplicate session requests, killing all connections #396

Description

@minhtule

Problem

An authenticated SSH client that sends duplicate exec, shell, or subsystem requests on the same channel can trigger a send on closed channel panic in the request handler. The panic crashes the whole process, disconnecting every active session, and can be repeated for a sustained denial of service.

Desired behavior

  • Session request handling validates channel state, so duplicate or out-of-order requests are rejected instead of panicking.
  • A panic while serving a single connection is recovered and terminates only that connection, never the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions