acmpesuecc/ShatterLock

Key length obscurity issue

開放

#1 建立於 2025年10月17日

 (19 則留言) (0 個反應) (0 位負責人)C (10 個分叉)auto 404
Bounty: 250bugenhancementhacknight-2025hacktoberfestvulnerability fix

倉庫指標

星標
 (0 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently, when key1 and key2 are encrypted, the number of packets created is directly proportional to the length of the key. Hence, an attacker can count the number of packets created for each encryption operation and get the key length which makes brute force much more feasible and easier. ex: if the attacker tracks that 2 packets were made for the first key, they can get the length of the key using

Number of packets = ceil(data_length / 18) (from makepackets)
This reveals: key1_length ≈ num_packets_at_seed × 18

A possible fix would be to make the number of packets for any key fixed by strategically adding junk (like a constant letter z) and padding the key to a fixed length.

貢獻者指南