acmpesuecc / acmpesuecc/ShatterLock

Key length obscurity issue

オープン
#1 コメント 19 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bounty: 250 bug enhancement hacknight-2025 hacktoberfest vulnerability fix
主要言語
C
スター
0
フォーク
10
PR マージ指標
30日以内にマージされた 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。