mod/chat/chat_ajax.php in Moodle through 2.3.11, 2.4.x before 2.4.9, 2.5.x before 2.5.5, and 2.6.x before 2.6.2 does not properly check for the mod/chat:chat capability during chat sessions, which allows remote authenticated users to bypass intended access restrictions in opportunistic circumstances by remaining in a chat session after an intra-session capability removal by an administrator.
git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-44082
openwall.com/lists/oss-security/2014/03/17/1
github.com/moodle/moodle
github.com/moodle/moodle/commit/3d7810ab3d67a423a760ba89ae75de81d940b236
github.com/moodle/moodle/commit/4d4867503c2467cb04660d9cb314d22f56004054
github.com/moodle/moodle/commit/5c45ea0c6bf2fdf4dddfaef9fc5ff12e6b426a3f
github.com/moodle/moodle/commit/7748e17207b1a28118d9dc622878da22f956d3fe
moodle.org/mod/forum/discuss.php?d=256418
nvd.nist.gov/vuln/detail/CVE-2014-0122