Skip to content

CRITICAL: Wipe clears peer session without notification #6

@rafabd1

Description

@rafabd1

When a user triggers panic_wipe(), the local session is closed (stream_writer.shutdown()), but:

  1. No protocol message: The peer has no way to know the session is closed. They may continue trying to send messages or assume the session is still active.
  2. Silent failure: The peer's receive_loop will eventually timeout on I2P side, but there's no explicit "session_closed" signal sent over the protocol.
  3. Asymmetric state: One peer sees "session closed", the other thinks it's still waiting for messages.

This is a security AND usability issue:

  • Security: Information leakage (one side doesn't know when data should stop flowing)
  • UX: Peer doesn't know why messages are no longer reaching the other side

Proposed solution: Add a "session_end" message type to the protocol (like X3DH's "end" message) that gets sent before shutdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions