Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 21, 2026
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.
| Product | Versions |
|---|---|
| webmin webmin | 2.670 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 4.8 Medium | VulnCheck |
Weaknesses
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
- https://github.com/webmin/webminProduct Page
- https://github.com/webmin/webmin/blob/2.670/webmin/twofactor-funcs-lib.pl#L206Technical Details
- https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736Technical Details
- https://github.com/webmin/webmin/issues/2941Issue Tracker
- Webmin 2.670 security audit catalogueTechnical Details
- VulnCheck Advisory: Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.