Bug 1052000 (CVE-2014-0009)

Summary: CVE-2014-0009 moodle: group constraint checking issue for loginas (MSA-14-0002)
Product: [Other] Security Response Reporter: Murray McAllister <mmcallis>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-22 15:37:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1055388, 1055390    
Bug Blocks:    

Description Murray McAllister 2014-01-13 05:11:44 UTC
Itamar Tzadok found an issue in the group constraint checking for loginas. In some cases if a user had loginas privileges but not the site:accessallgroups capability, they could use this flaw to log in as a user not in their group. This issue affected Moodle versions 2.6, 2.5 to 2.5.4, 2.4 to 2.4.7, 2.3 to 2.3.10 and earlier unsupported versions. It has been fixed in 2.6.1, 2.5.4, 2.4.8 and 2.3.11.

I have not checked if versions 1.9.19 in EPEL 5 is affected or not.

According to the Moodle documentation, loginas cannot be used to log in as an administrator:

http://docs.moodle.org/25/en/Capabilities/moodle/user:loginas

Patch:

http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-42643

Comment 1 Ratul Gupta 2014-01-20 07:21:42 UTC
Created moodle tracking bugs for this issue:

Affects: fedora-all [bug 1055388]
Affects: epel-all [bug 1055390]

Comment 2 Murray McAllister 2014-01-20 23:29:20 UTC
Upstream announcement:

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