• 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
templates Loading commit data...
wsssd Loading commit data...
wsssh-server/debian Loading commit data...
wssshd2 Loading commit data...
wssshtools Loading commit data...
.gitignore Loading commit data...
BRIDGE_MODE_TESTING.md Loading commit data...
CHANGELOG.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
TODO.md Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
image.jpg Loading commit data...
prompt.txt Loading commit data...
requirements.txt Loading commit data...
service.conf.example Loading commit data...
test_bridge_mode.sh Loading commit data...
wssshc.conf.example Loading commit data...
wssshc.init Loading commit data...
wssshc_watcher.sh Loading commit data...
wssshd.conf.example Loading commit data...
wssshd.init Loading commit data...
wssshd.py Loading commit data...
wsssht.conf.example Loading commit data...
wsssht.init Loading commit data...