Insecure Direct Object Reference in Moodle OpenAI Chat Block Plugin
CVE-2025-60511
Key facts: CVE-2025-60511 is a medium severity (CVSS 4.3) vulnerability in Moodle OpenAI Chat Block. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.3%, the estimated probability of exploitation in the next 30 days.
What is CVE-2025-60511?
The Moodle OpenAI Chat Block plugin version 3.0.1 suffers from an Insecure Direct Object Reference (IDOR) vulnerability caused by inadequate validation of the blockId parameter in the API endpoint /blocks/openai_chat/api/completion.php. This issue allows an authenticated student to impersonate another user's block, such as that of an administrator, enabling them to send queries executed under the configuration of that block. As a result, sensitive administrator-only data may be exposed, the behavior of the model could be tampered with, and API resources may be misused.