by jlgaddis · 6y ago · 0 comments
As described inthe relevant entry [0] on Debian's Security Tracker:
> SaltStack RSA Key Generation allows remote users to decrypt communications
The fix [1]:
- gen = RSA.gen_key(keysize, 1, callback=lambda x, y, z: None)
+ gen = RSA.gen_key(keysize, 65537, callback=lambda x, y, z: None)
---[0]: https://security-tracker.debian.org/tracker/CVE-2013-2228
[1]: https://github.com/saltstack/salt/commit/e8ce66cf688b43aeb3e...
Here is the documentation from the RSA.gen_key() function.
def gen_key(bits, e, callback=keygen_callback):
# type: (int, int, Callable) -> RSA
"""
Generate an RSA key pair.
:param bits: Key length, in bits.
:param e: The RSA public exponent.
:param callback: A Python callable object that is invoked
during key generation; its usual purpose is to
provide visual feedback. The default callback is
keygen_callback.
:return: M2Crypto.RSA.RSA object.
"""
https://gitlab.com/m2crypto/m2crypto/-/blob/master/M2Crypto/... int getRandomNumber()
{
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}