Re:7-zip broken password random number generator
by MrRadar on Wednesday January 23, 2019 @03:52PM
(#18982807)
On the other hand, using the system cryptographic RNG (/dev/urandom, CryptGenRandom) is probably less effort than it took to write this strange half-baked RNG.
Re:7-zip broken password random number generator
by shittyadmin on Wednesday January 23, 2019 @04:26PM
(#18983153)
Yup, if you want to see the state of the art in this, here it is from libsodium:
https://github.com/jedisct1/libsodium/blob/master/src/libsod...
They sum it up in their docs like this:
- On Windows systems, the RtlGenRandom() function is used
- On OpenBSD and Bitrig, the arc4random() function is used
- On recent Linux kernels, the getrandom system call is used
- On other Unices, the /dev/urandom device is used
Re:7-zip broken password random number generator
by loeg on Wednesday January 23, 2019 @04:43PM
(#18983366)
It seems they use getrandom() on FreeBSD too:
# if defined(__FreeBSD_version) && __FreeBSD_version >= 1200000
# include <sys/random.h>
# define HAVE_LINUX_COMPATIBLE_GETRANDOM
Re:7-zip broken password random number generator
by int_19h on Wednesday January 23, 2019 @07:36PM
(#18984849)
CryptGenRandom first appeared in WinXP.
And 7-Zip first shipped in 1999. Granted, AES support was only added in 2003, but the app still had to run on Win2K and 9x back then.
Re:7-zip broken password random number generator
by chasil on Wednesday January 23, 2019 @04:42PM
(#18983348)
This likely happened because 7-zip is Windows-centric, and the p7zip packages for UNIXish systems are assembled afterwards.
Re:7-zip broken password random number generator
by deepsun on Wednesday January 23, 2019 @07:52PM
(#18984973)
I hear this argument again and again: "there's no exploit, or show one".
Guys, this is not how info security should be taken. Just follow best practices, and experts recommendations, even when you cannot immediately see how it can be exploited. Because tomorrow someone _may_ actually find an exploit there. Finding exploits is a hard job, and a bit of luck.
The twitter thread that this is aggregated from has replies that seem to indicate that there is no practical exploit here.
https://twitter.com/3lbios/status/1087848040583626753