• Stefy Lanza (nextime / spora )'s avatar
    Fix critical segmentation fault in wssshd2 when wsscp is interrupted · 6a0a6c28
    Stefy Lanza (nextime / spora ) authored
    - Add comprehensive thread-safety with mutex locks for all shared data structures
    - Implement proper tunnel cleanup when websocket connections close to prevent use-after-free
    - Add immediate connection state updates when receive operations fail to prevent race conditions
    - Enhance error handling with graceful failure management for SSL operations
    - Prevent server crashes during client disconnections and file transfer interruptions
    
    Root cause: Use-after-free vulnerability when freed websocket connections were still referenced by active tunnels during client interruptions.
    
    Solution: Complete overhaul of connection lifecycle management with proper synchronization and cleanup procedures.
    
    Fixes issue where pressing Ctrl+C during wsscp file transfers caused wssshd2 to segfault.
    6a0a6c28
Name
Last commit
Last update
..
control_messages.c Loading commit data...
control_messages.h Loading commit data...
data_messages.c Loading commit data...
data_messages.h Loading commit data...
modes.c Loading commit data...
modes.h Loading commit data...
threads.c Loading commit data...
threads.h Loading commit data...
tunnel.c Loading commit data...
tunnel.h Loading commit data...
utils.c Loading commit data...
utils.h Loading commit data...
websocket.c Loading commit data...
websocket.h Loading commit data...
wssh_ssl.c Loading commit data...
wssh_ssl.h Loading commit data...
wssshlib.c Loading commit data...
wssshlib.h Loading commit data...
wsssht.h Loading commit data...