mirror of https://github.com/meshcore-dev/MeshCore
Browse Source
Add validation that ciphertext length is a multiple of CIPHER_BLOCK_SIZE before calling decrypt(). The decrypt() function processes data in 16-byte AES blocks, rounding up non-aligned input, which can write up to 8 bytes past the caller's stack buffer. This can be triggered by crafted packets that pass the 2-byte HMAC check (1-in-65536 chance per attempt), enabling a persistent denial-of-service attack against repeaters and other nodes.pull/1809/head
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue