Moodle 2.6.2 leak sensitive name and summary information

2014.05.27
Credit: Marina Glancy
Risk: Low
Local: No
Remote: Yes
CWE: CWE-200


CVSS Base Score: 4.3/10
Impact Subscore: 2.9/10
Exploitability Subscore: 8.6/10
Exploit range: Remote
Attack complexity: Medium
Authentication: No required
Confidentiality impact: Partial
Integrity impact: None
Availability impact: None

enrol/index.php in Moodle 2.6.x before 2.6.3 does not check for the moodle/course:viewhiddencourses capability before listing hidden courses, which allows remote attackers to obtain sensitive name and summary information about these courses by leveraging the guest role and visiting a crafted URL. diff --git a/enrol/index.php b/enrol/index.php index 3cc5335..68a12fd 100644 (file) --- a/enrol/index.php +++ b/enrol/index.php @@ -41,6 +41,10 @@ if ($course->id == SITEID) { redirect("$CFG->wwwroot/"); } +if (!$course->visible && !has_capability('moodle/course:viewhiddencourses', context_course::instance($course->id))) { + print_error('coursehidden'); +} + $PAGE->set_course($course); $PAGE->set_pagelayout('course'); $PAGE->set_url('/enrol/index.php', array('id'=>$course->id));

References:

http://git.moodle.org/gw?p=moodle.git;a=commitdiff;h=eaea796e70f6630494d3772684604ab6e907f4ac


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top