Description
Webmin through 2.670 contains a weak randomness vulnerability that allows attackers to predict TOTP two-factor secrets generated by generate_base32_secret() 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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| webmin | webmin | ≤ 2.670 | — |
Advisories 1
- WID-SEC-2026-4785 Webmin: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 24, 2026
References
- https://github.com/webmin/webmin product
- https://github.com/webmin/webmin/blob/2.670/webmin/twofactor-funcs-lib.pl#L206 technical-description
- https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736 technical-description
- https://github.com/webmin/webmin/issues/2941 issue-tracking
- Webmin 2.670 security audit catalogue technical-description
- VulnCheck Advisory: Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret() third-party-advisory