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.
Metrics
CVSS 3.1 4.8/10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| webmin | webmin | <= 2.670 |
References
- https://doi.org/10.5281/zenodo.24396540
- https://github.com/webmin/webmin
- https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9736
- https://github.com/webmin/webmin/blob/2.670/webmin/twofactor-funcs-lib.pl#L206
- https://github.com/webmin/webmin/issues/2941
- https://www.vulncheck.com/advisories/webmin-through-2.670-predictable-totp-secret-generation-via-generate-base32-secret
Timeline
- Published
- Nov 25, 2026
- Last modified
- Nov 30, 2026
- NVD status
- Deferred