Skip to content
OpenAdvisories

Weakness (CWE)

CWE-1241: Use of Predictable Algorithm in Random Number Generator

Base Draft

The device uses an algorithm that is predictable and generates a pseudo-random number.

More detail

Pseudo-random number generator algorithms are predictable because their registers have a finite number of possible states, which eventually lead to repeating patterns. As a result, pseudo-random number generators (PRNGs) can compromise their randomness or expose their internal state to various attacks, such as reverse engineering or tampering.

How to prevent it (1 mitigation)
  1. Architecture and Design, Implementation

    It is highly recommended to use a true random number generator (TRNG) to ensure the security of encryption schemes. Hardware-based TRNGs generate unpredictable, unbiased, and independent random numbers because they employ physical phenomena, e.g., electrical noise, as sources to generate random numbers.

Source: MITRE CWE-1241

2 results · Clear filters · Feed

  • Low 2.6

    phpservermon User.php setUserLoggedIn predictable algorithm in random number generator

    A vulnerability, which was classified as problematic, was found in phpservermon. Affected is the function setUserLoggedIn of the file src/psm/Service/User.php. The manipulation leads to use of predictable algorithm in random number generator. The exploit has …

  • Low 2.6

    phpservermon User.php generatePasswordResetToken predictable algorithm in random number generator

    A vulnerability, which was classified as problematic, was found in phpservermon. This affects the function generatePasswordResetToken of the file src/psm/Service/User.php. The manipulation leads to use of predictable algorithm in random number generator. The …