Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Medium 4.8CVE-2026-134636

Webmin through 2.670 Predictable TOTP Secret Generation via generate_base32_secret()

Published 25/11/2026 · Updated 25/11/2026 · webmin

Original 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 and versions

webmin webmin≤ 2.670

CVSS vector, explained

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Attack vector
Network (from the internet)
Attack complexity
High
Privileges required
None (no login)
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
Low impact
Integrity
Low impact
Availability
None

Weakness type (CWE)

  • CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.