GHSA-382v-gxj9-ffhc

    Dashboard / Vulnerabilities / GHSA-382v-gxj9-ffhc

    GHSA-382v-gxj9-ffhc

    Published: 13 May 2022Last Modified: 16 Feb 2024
    Aliases:

    Summary: Moodle uses predictable password-recovery tokens

    Details: lib/moodlelib.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 relies on the PHP mt_rand function to implement the random_string and complex_random_string functions, which makes it easier for remote attackers to predict password-recovery tokens via a brute-force approach.

    Affected packages

    Package

    Name: moodle/moodle

    Purl: pkg:composer/moodle/moodle

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2.7.10

    Affected versions

    v2.3.10
    v2.3.11
    v2.3.4
    v2.3.5
    v2.3.6
    v2.3.7
    v2.3.8
    v2.3.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-382v-gxj9-ffhc | CVE-DB