Security announcements

Picture of Marina Glancy
MSA-17-0013: Missing permission check when adding forum post attachments in Web Services
 

Users without capability to add attachment to forum posts were able to do it via Web Services. This Web Service is used in mobile app.


Severity/Risk: Minor
Versions affected: 3.2 to 3.2.2 and 3.1 to 3.1.5
Versions fixed: 3.2.3 and 3.1.6
Reported by: Juan Leyva
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-58259
Tracker issue: MDL-58259 Forum post Web Services should check if the user has permissions to add attachments
 
Picture of Marina Glancy
MSA-17-0012: CSRF in number of courses displayed in the course overview block
 

The link changing user preference of how many courses to see in their course overview block was not protected against CSRF. This represents a minor security issue since it can't be exploited for anybody's benefit, only to create confusions


Severity/Risk: Minor
Versions affected: 3.2 to 3.2.2, 3.1 to 3.1.5, 3.0 to 3.0.9, 2.7 to 2.7.19 and other unsupported versions
Versions fixed: 3.2.3, 3.1.6, 3.0.10 and 2.7.20
Reported by: Lukas Schmidt
CVE identifier: CVE-2017-7491
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-58740
Tracker issue: MDL-58740 CSRF on my/index.php
 
Picture of Marina Glancy
MSA-17-0011: Searching of blogs possible without capability to do it
 

Capability to search blogs was not checked properly resulting in users being able to search blogs without permission


Severity/Risk: Minor
Versions affected: 3.2 to 3.2.2, 3.1 to 3.1.5, 3.0 to 3.0.9, 2.7 to 2.7.19 and other unsupported versions
Versions fixed: 3.2.3, 3.1.6, 3.0.10 and 2.7.20
Reported by: Daniel Kosinski
CVE identifier: CVE-2017-7490
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-58670
Tracker issue: MDL-58670 Users can search blogs by typing full url in address bar even with capability moodle/blog:search removed from their role
 
Picture of Marina Glancy
MSA-17-0010: External blog editing takeover
 

User could edit somebody else's external blog link. The ownership of the blog would be changed to the current user, therefore compromising other people was not possible


Severity/Risk: Minor
Versions affected: 3.2 to 3.2.2, 3.1 to 3.1.5, 3.0 to 3.0.9, 2.7 to 2.7.19 and other unsupported versions
Versions fixed: 3.2.3, 3.1.6, 3.0.10 and 2.7.20
Reported by: Vuk Ivanovic
CVE identifier: CVE-2017-7489
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-58635
Tracker issue: MDL-58635 External blog editing takeover
 
Picture of Marina Glancy
MSA-17-0009: XSS in attachments to evidence of prior learning
 
Description: Serving files attached to evidence of prior learning did not force download. When viewed by other users they would be opened in current moodle sessions
Issue summary: XSS in attachments to evidence of prior learning
Severity/Risk: Serious
Versions affected: 3.2 to 3.2.1 and 3.1 to 3.1.4
Versions fixed: 3.2.2 and 3.1.5
Reported by: wez3
Issue no.: MDL-57597
CVE identifier: CVE-2017-2645
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-57597
 
Picture of Marina Glancy
MSA-17-0008: XSS in evidence of prior learning
 
Description: Registered user could submit evidence of prior learning that includes XSS that will be executed for another user who tried to edit the same evidence
Issue summary: XSS in evidence of prior learning
Severity/Risk: Minor
Versions affected: 3.2 to 3.2.1 and 3.1 to 3.1.4
Versions fixed: 3.2.2 and 3.1.5
Reported by: Jaymark Pestaño
Issue no.: MDL-57596
CVE identifier: CVE-2017-2644
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-57596
 
Picture of Marina Glancy
MSA-17-0007: Global search displays user names for unauthenticated users
 
Description: Global search does not respect "Force login for profiles" setting and displays user names to guests when it should not (User profiles were still not displayed)
Issue summary: Global search display user names, for unauthenticated user search
Severity/Risk: Minor
Versions affected: 3.2 to 3.2.1
Versions fixed: 3.2.2
Reported by: Nadav Kavalerchik
Issue no.: MDL-56526
CVE identifier: CVE-2017-2643
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-56526
 
Picture of Marina Glancy
MSA-17-0005: SQL injection via user preferences
 
Description: PoC was presented of SQL injection by an ordinary registered user on Moodle 3.2 via web interface. Similar scenario could be used in previous versions of Moodle but only by managers/admins and only via web services.
Issue summary: Remote Code Execution @ 3.2.1
Severity/Risk: Serious
Versions affected: 3.2 to 3.2.1, 3.1 to 3.1.4, 3.0 to 3.0.8, 2.7.0 to 2.7.18 and other unsupported versions
Versions fixed: 3.2.2, 3.1.5, 3.0.9 and 2.7.19
Reported by: Netanel Rubin
Issue no.: MDL-58010
CVE identifier: CVE-2017-2641
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-58010
 
Picture of Marina Glancy
MSA-17-0004: XSS in assignment submission page
 
Description: HTML injection with potential XSS attack was possible by modifying URL for assignment submission and tricking another user into following it
Issue summary: XSS in assignment submission page
Severity/Risk: Minor
Versions affected: 3.2 and 3.1 to 3.1.3
Versions fixed: 3.2.1 and 3.1.4 (also backported to 2.7.18 and 3.0.8 as a precaution)
Reported by: Ago Luberg and Wael AbuSeada
Issue no.: MDL-57580
CVE identifier: CVE-2017-2578
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-57580
 
Picture of Marina Glancy
MSA-17-0003: PHPMailer vulnerability in no-reply address
 
Description: Security vulnerability was reported against PHPMailer, third party library used by Moodle. As a result Moodle improved validation of no-reply address (that can only be configured by admin), all other fields were already properly sanitized. This issue only affect sites that leave $CFG->smtphosts empty.
Issue summary: Address the vulnerabilities in recent PHPMailer 5.2.x
Severity/Risk: Serious
Versions affected: 3.2, 3.1 to 3.1.3, 3.0 to 3.0.7, 2.9 to 2.9.9, 2.8 to 2.8.12, 2.7 to 2.7.17 and earlier unsupported versions
Versions fixed: 3.2.1, 3.1.4, 3.0.8 and 2.7.18
Reported by: Matteo Scaramuccia
Issue no.: MDL-57531
Workaround: Define $CFG->noreplyaddress and $CFG->supportemail in config.php
CVE identifier: CVE-2016-10045 (PHPMailer)
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-57531