Bug 1895419 (CVE-2020-25698)

Summary: CVE-2020-25698 moodle: Teacher is able to unenrol users without permission using course restore
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gwync, igor.raits, security-response-team, sergio
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: moodle 3.9.3, moodle 3.8.6, moodle 3.7.9, moodle 3.5.15, moodle 3.10 Doc Type: If docs needed, set a value
Doc Text:
Users' enrollment capabilities were not being sufficiently checked when they restored into an existing course, could lead to them unenrolling users without having permission to do so. Versions affected: 3.5 to 3.5.14, 3.7 to 3.7.8, 3.8 to 3.8.5, 3.9 to 3.9.2 and earlier unsupported versions
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-19 17:28:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1899532, 1899533    
Bug Blocks:    

Description Michael Kaplan 2020-11-06 16:22:58 UTC
Users' enrolment capabilities were not being sufficiently checked when they restored into an existing course,  could lead to them unenrolling users without having permission to do so.

Versions affected: 3.5 to 3.5.14, 3.7 to 3.7.8, 3.8 to 3.8.5, 3.9 to 3.9.2 and earlier unsupported versions

Comment 1 Michael Kaplan 2020-11-06 16:23:00 UTC
Acknowledgments:

Name: Roman Sevostyanov

Comment 2 Michael Kaplan 2020-11-19 13:57:06 UTC
External References:

https://moodle.org/mod/forum/discuss.php?d=413935

Comment 3 Michael Kaplan 2020-11-19 13:57:24 UTC
Created moodle tracking bugs for this issue:

Affects: epel-all [bug 1899532]
Affects: fedora-all [bug 1899533]

Comment 4 Product Security DevOps Team 2020-11-19 17:28:35 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.