mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-10-11 19:23:59 +00:00
955621899e2baef0e38a722f0925bcb5614c521b
The check was spent on the first frame that decrypted, whatever it held. A server tags the messages it chooses to, and a frame carrying no echo reads as `echoed == 0`, which passes; on the way out it also disarmed the check for good, so an attacker who rewrote the advertised version only had to let one untagged frame through to be rid of the only thing that would have caught it. A zero now says nothing either way and leaves the check standing. Only a non-zero echo settles the question, matching or refusing the stream. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
Description
No description provided
74 MiB
Languages
Rust
100%