CVE-2026-134636: Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()

Published Nov 25, 2026
·
Updated

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

1 affected component
Webmin Webmin<=2.670

Event History

Nov 25, 2026
CVE Published
via MITRE·03:21 AM
Data Sourced
via MITRE·03:21 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203