acmpesuecc / acmpesuecc/ShatterLock

Key length obscurity issue

Abierto
#1 19 comentarios 0 reacciones 0 asignados Ver en GitHub
Bounty: 250 bug enhancement hacknight-2025 hacktoberfest vulnerability fix
Lenguaje dominante
C
Estrellas
0
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.