CVE-2026-134636: Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()
Webmin through 2.670 contains a weak randomness vulnerability that allows attackers to predict TOTP two-factor secrets generated by generatebase32secret() using a time and PID seeded rand(). Attackers who know a user's password and estimate enrollment time can enumerate candidate seeds, reproduce the secret, and bypass the second authentication factor.
Affected Software
Event History
Frequently Asked Questions
What must an attacker know or estimate to exploit this issue?
The attacker needs the target user's password and an estimate of when that user enrolled TOTP. With those inputs, they can enumerate time- and PID-derived random seeds and reproduce candidate TOTP secrets.
Does this vulnerability allow an attacker to bypass authentication without a password?
No. The described attack requires knowledge of the user's password; the predictable secret is used to bypass the second authentication factor after the password is known.
Which TOTP users are exposed?
Users whose TOTP secret was generated by the affected generate_base32_secret() implementation in Webmin through 2.670 are potentially exposed. Exploitability also depends on the attacker being able to estimate the user's TOTP enrollment time.