CVE-2017-2641
published 2017-03-26CVE-2017-2641: In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
PriorityP268critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
14.53%
96.2th percentile
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
Affected
40 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
| moodle | moodle | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Monitor POST requests to /lib/ajax/service.php containing 'core_user_update_user_preferences' with a 'course_overview_course_order' preference value that contains a PHP serialized payload (starts with 'a:' or 'O:' patterns indicating object/array serialization). ↗
- →Alert on POST to /blocks/course_overview/save.php with 'sortorder[]' set to 0, which resets the course_blocks sortorder to trigger the legacy user preference code path used by the exploit. ↗
- →Any authenticated (non-admin) user modifying the 'config' table rows (e.g., row 25 for 'siteadmins') via the SQL injection vector should be treated as a privilege escalation attempt. ↗
- →Watch for a GET to /admin/index.php?cache=0&confirmplugincheck=1 immediately following AJAX calls to service.php from a non-admin session, indicating post-exploitation admin panel access. ↗
- ·The row ID for the 'siteadmins' config entry (used to escalate privileges) is installation-dependent and may not always be row 25. ↗
- ·The exploit requires the attacker to already be a registered (authenticated) user on the Moodle instance; unauthenticated exploitation is not possible. ↗
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Moodle SQL injection via user preferences
osv·2022-05-17
CVE-2017-2641 [CRITICAL] Moodle SQL injection via user preferences
Moodle SQL injection via user preferences
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
GHSA
Moodle SQL injection via user preferences
ghsa·2022-05-17
CVE-2017-2641 [CRITICAL] CWE-89 Moodle SQL injection via user preferences
Moodle SQL injection via user preferences
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
OSV
CVE-2017-2641: In Moodle 2
osv·2017-03-26·CVSS 9.8
CVE-2017-2641 [CRITICAL] CVE-2017-2641: In Moodle 2
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
No detection rules found.
Bugzilla
CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities
bugzilla·2017-03-22·CVSS 9.8
CVE-2017-2641 [CRITICAL] CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities
CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities
Multiple security issues were fixed in the latest moodle release.
MSA-17-0005: SQL injection via user preferences
MSA-17-0007: Global search displays user names for unauthenticated users
MSA-17-0008: XSS in evidence of prior learning
MSA-17-0009: XSS in attachments to evidence of prior learning
References:
https://moodle.org/mod/forum/discuss.php?d=349027#p1408104
Discussion:
Created moodle tracking bugs for this issue:
Affects: epel-7 [bug 1434721]
Affects: fedora-all [bug 1434720]
Bugzilla
CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities [epel-7]
bugzilla·2017-03-22·CVSS 9.8
CVE-2017-2641 [CRITICAL] CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities [epel-7]
CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the follow
Bugzilla
CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities [fedora-all]
bugzilla·2017-03-22·CVSS 9.8
CVE-2017-2641 [CRITICAL] CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities [fedora-all]
CVE-2017-2641 CVE-2017-2643 CVE-2017-2644 CVE-2017-2645 moodle: Multiple security vulnerabilities [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue af
http://www.securityfocus.com/bid/96977http://www.securitytracker.com/id/1038174https://moodle.org/mod/forum/discuss.php?d=349419https://www.exploit-db.com/exploits/41828/http://www.securityfocus.com/bid/96977http://www.securitytracker.com/id/1038174https://moodle.org/mod/forum/discuss.php?d=349419https://www.exploit-db.com/exploits/41828/
2017-03-26
Published