Webmin weak RNG allows TOTP secret prediction and 2FA bypass
Nov 27 find · published Nov 25GIgithub.com · 2 min readRead original
Weak RNG in TOTP generationImplementation flaw: predictable secretsPrivate key recovery via seed enumeration
Webmin through version 2.670 contains a weak randomness vulnerability in its TOTP secret generation. The generate_base32_secret() function seeds rand() with only the current time and process ID, allowing attackers who know a user's password to enumerate candidate seeds during the enrollment window and reproduce the TOTP secret. This enables bypass of the second authentication factor. The vulnerability is tracked as CVE-2026-134636 with a CVSS score of 6.3.
2.670Affected Webmin version
6.3CVSS severity score
Comments
Sign in to join the conversation.