Bug 1692898 (CVE-2019-3847)

Summary: CVE-2019-3847 moodle: "Log in as" functionality exposed to JavaScript risk on other users' Dashboards
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
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, sergio
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: moodle 3.6.3, moodle 3.5.5, moodle 3.4.8, moodle 3.1.17 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:52:03 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: 1692899, 1692900    
Bug Blocks:    

Description Laura Pardo 2019-03-26 16:30:14 UTC
A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17. Users with the "login as other users" capability (such as administrators/managers) can access other users' Dashboards, but the JavaScript those other users may have added to their Dashboard was not being escaped when being viewed by the user logging in on their behalf.


Upstream Bug:
https://tracker.moodle.org/browse/MDL-63786

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

Comment 1 Laura Pardo 2019-03-26 16:30:17 UTC
Acknowledgments:

Name: Daniel Thatcher

Comment 2 Laura Pardo 2019-03-26 16:30:25 UTC
External References:

https://moodle.org/mod/forum/discuss.php?d=384010#p1547742

Comment 3 Laura Pardo 2019-03-26 16:30:43 UTC
Created moodle tracking bugs for this issue:

Affects: epel-all [bug 1692900]
Affects: fedora-all [bug 1692899]

Comment 4 Product Security DevOps Team 2019-06-10 10:52:03 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.