CVE-2026-134636 in Webmininfo

Summary

by MITRE • 11/25/2026

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.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in Webmin versions through 2.670 represents a critical failure in cryptographic randomness generation within the two-factor authentication module. Specifically, the function generate_base32_secret(), which is responsible for creating Time-based One-Time Password secrets during user enrollment, relies on PHP's rand() function seeded with a combination of the current time and the process ID. This approach fundamentally violates established security principles regarding entropy sources because both the system clock and the PID are predictable or easily enumerable values rather than true random data. The use of weak randomness in cryptographic key generation is classified under CWE-330, which denotes the use of insufficiently random values, a flaw that undermines the core assumption of unpredictability required for secure authentication mechanisms.

From an operational perspective, this weakness allows attackers to bypass the second factor of authentication if they possess the user's primary password and can estimate or determine the exact time at which the TOTP secret was generated. Since the seed is derived from the process ID and timestamp, an attacker who has gained access to the system or can observe network traffic may deduce these parameters with high precision. By enumerating candidate seeds based on the estimated enrollment window, the attacker can reproduce the specific base32 secret associated with a target user's account. This capability effectively neutralizes the protective value of two-factor authentication, reducing it to a single factor and exposing accounts to unauthorized access through credential stuffing or phishing attacks where only passwords are compromised.

This vulnerability aligns with ATT&CK technique T1078, specifically related to valid accounts being used for initial access, as well as aspects of T1528 regarding stolen application credentials. The ability to predict authentication secrets enables lateral movement and privilege escalation within environments relying on Webmin for system administration. Attackers can leverage this flaw to maintain persistent access without detection by standard security monitoring tools that look for failed login attempts or anomalous behavior, since the successful use of a predicted TOTP code appears as legitimate activity from an authorized user perspective.

Mitigation strategies must prioritize immediate patching to version 2.671 or later where the underlying randomness generation has been corrected to utilize cryptographically secure pseudo-random number generators such as random_bytes() in PHP environments. Until patches are applied, administrators should enforce strict network segmentation and monitor for unusual authentication patterns that might indicate seed enumeration attempts. Additionally, implementing account lockout policies after a limited number of failed login attempts can reduce the window of opportunity for brute-force style attacks against predicted secrets. Long-term remediation involves auditing all instances where rand() or similar non-cryptographic functions are used in security-sensitive contexts and replacing them with standards-compliant entropy sources as defined by NIST SP 800-90A recommendations for random bit generation.

Responsible

VulnCheck

Reservation

11/21/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00462

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!