-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.1
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
MDL-78522-master -
-
3
-
Team Alpha - Sprint 2 I2-2023
A regression caused by MDL-77130
Patch coming soon
Reproduce:
- Imaging you have cat1 and cat2 that are siblings
- You have course1 that is in cat1
- You have a cohort and its context is cat2
-
cohort_get_cohort($cohort->id, \context_course::instance($course1->id), true);
- Above call result supposed to be false, but it returns cohort info
Its not really exploitable by a user via UI. However it is possible to use API in 3rd party plugin for example to get cohort info where it shouldn't be allowed
It might be reclassified as security benefit issue.