GHSA-9v64-447r-wch6 CVE-2014-7845
Moodle Temporary Passwords are Brute Force-able
- Severity
- High
- The publisher's own rating, not a CVSS score
- Exploit chance (EPSS)
- 2.41%
- Chance of exploitation in the next 30 days. Higher than 84.09% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-1391 Use of Weak Credentials
- Fix
2.7.3- Upgrade moodle/moodle to this version or later
Description
The generate_password function in Moodle through 2.4.11, 2.5.x before 2.5.9, 2.6.x before 2.6.6, and 2.7.x before 2.7.3 does not provide a sufficient number of possible temporary passwords, which allows remote attackers to obtain access via a brute-force attack.
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| moodle/moodle | >= 2.7.0, < 2.7.3 |
2.7.3 |
| moodle/moodle | >= 2.6.0, < 2.6.6 |
2.6.6 |
| moodle/moodle | >= 2.5.0, < 2.5.9 |
2.5.9 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
moodle/moodle Packagist → 2.7.3
- composer
composer require moodle/moodle:^2.7.3
Weakness
CWE-1391: Use of Weak Credentials
The product uses weak credentials (such as a default key or hard-coded password) that can be calculated, derived, reused, or guessed by an attacker.
How to prevent it
- Architecture and Design, Operation: When the user changes or sets a password, check the password against a database of already compromised or breached passwords. These passwords are likely to be used in password guessing attacks.
References
Advisories
Packages
Other links
- github.com/moodle/moodle/commit/04f2e83ce76cf931e6614497c1a7cc6c8afb9454
- github.com/moodle/moodle/commit/3128901f99d41d9368e81ffc67f4bc0535221e02
- github.com/moodle/moodle/commit/40a04658232d898223462f84d8cd35510338acbe
- github.com/moodle/moodle/commit/ece03f3b13c5eefa7bb008401b9414eed620eebc
- moodle.org/mod/forum/discuss.php
- web.archive.org/web/20150914064838/http://www.securitytracker.com/id/1031215
- git.moodle.org/gw
- openwall.com/lists/oss-security/2014/11/17/11
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-cg8j-5cr2-568q Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits | Medium | Also affects moodle/moodle |
| GHSA-ggxq-2mg9-8966 Moodle has a Remote Code Execution risk via file restore | High | Also affects moodle/moodle |
| GHSA-8jrv-wx83-w3xj Moodle Inserts Sensitive Information Into Sent Data | Medium | Also affects moodle/moodle |
| GHSA-hcm6-q6pc-xfhm Moodle has an authorization logic flaw | Critical | Also affects moodle/moodle |
| GHSA-vwhw-vp9v-q9c9 Moodle vulnerable to Cross-site Scripting | Medium | Also affects moodle/moodle |
| GHSA-5cx4-w4fh-fr57 Moodle Affected by Improper Restriction of Excessive Authentication Attempts | High | Also affects moodle/moodle |
| GHSA-qv78-6gpp-hm68 Moodle Open Redirect vulnerability | Medium | Also affects moodle/moodle |
| GHSA-qfh6-h7j6-fvjv Moodle formula injection vulnerability | High | Also affects moodle/moodle |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor