Advisory

GHSA-382v-gxj9-ffhc

Also known as: CVE-2015-5267

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:12 UTC
Modified
2024-02-16 08:24 UTC

Affected packages and fixes

moodle/moodle

Packagist · All systems

Affected

  • introduced 0, fixed 2.7.10 (ecosystem)

Fixed versions

2.7.10

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 2.8.0, fixed 2.8.8 (ecosystem)

Fixed versions

2.8.8

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 2.9.0, fixed 2.9.2 (ecosystem)

Fixed versions

2.9.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences