Menu

UFTP 5.0.1 - server crash when CLIENT_KEY arrives after lost REGISTER

Vít Lapka
2023-10-19
2023-11-09
  • Vít Lapka

    Vít Lapka - 2023-10-19

    Hello,
    while testing with multiple clients and on a more congested network, we have run into crashes of UFTP server in Announce phase (with a closed group). This was caused by REGISTER packet from client being lost in the network, but CLIENT_KEY packet arriving. In that case the server attempted to decrypt CLIENT_KEY but had no encryption context allocated (normally done on receiving REGISTER), leading to the crash (a memory violation).

    I have made a fix by adding a check in server_phase.c:handle_announce_phase() to reject encrypted packets from unregistered clients (see the attached patch). This seems to have resolved the crashing.

    With regards
    Vít Lapka

     
  • Dennis Bush

    Dennis Bush - 2023-11-09

    Vit,

    Thanks for catching this. I've just released version 5.0.2 to address this issue as well as some memory leaks recently uncovered.

    Regards,
    Dennis

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.