VDB
Sign up
MEDIUM

GHSA-48rq-vj58-2mh6

Moodle creates a MoodleMobile web-service token with an infinite lifetime

Quick fix

GHSA-48rq-vj58-2mh6 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.4.10

Details

login/token.php in Moodle through 2.3.11, 2.4.x before 2.4.10, 2.5.x before 2.5.6, and 2.6.x before 2.6.3 creates a MoodleMobile web-service token with an infinite lifetime, which makes it easier for remote attackers to hijack sessions via a brute-force attack.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 2.4.10
Fixcomposer require moodle/moodle:^2.4.10
Packagist/moodle/moodle
Introduced in: 2.5.0Fixed in: 2.5.6
Fixcomposer require moodle/moodle:^2.5.6
Packagist/moodle/moodle
Introduced in: 2.6.0Fixed in: 2.6.3
Fixcomposer require moodle/moodle:^2.6.3

References