CVE-2025-60511: Moodle OpenAI Chat Block plugin 3.0.1 (2025021700) suffers from an Insecure Direct Object Reference (IDOR)...
Moodle OpenAI Chat Block plugin 3.0.1 (2025021700) suffers from an Insecure Direct Object Reference (IDOR) vulnerability due to insufficient validation of the blockId parameter in /blocks/openai_chat/api/completion.php. An authenticated student can impersonate another user's block (e.g., administrator) and send queries that are executed with that block's configuration. This can expose administrator-only Source of Truth entries, alter model behavior, and potentially misuse API resources.
Security readout for executives and security teams
Plain-English summary
An authenticated Moodle student may be able to make the OpenAI Chat Block act as if it were another user's block, including an administrator's. That could reveal admin-only Source of Truth content, change AI behavior through another block's configuration, and consume API resources. The CVE rates this as medium severity, not a full system compromise.
Executive priority
Treat this as a targeted confidentiality and resource-misuse risk for Moodle environments using this AI plugin. Prioritize review where administrator Source of Truth content contains sensitive policy, operational, or internal data.
Technical view
The issue is an IDOR/CWE-639 in /blocks/openai_chat/api/completion.php caused by insufficient validation of the blockId parameter. A low-privileged authenticated user can reference another user's block configuration. The CVSS 3.1 score is 4.3 with low confidentiality impact and no stated integrity or availability impact.
Likely exposure
Exposure appears limited to Moodle deployments running the OpenAI Chat Block plugin version 3.0.1 (2025021700), based on the CVE description. The CVE affected-product metadata is incomplete, listing vendor, product, versions, and CPEs as n/a.
Exploitation context
The bundle references a public write-up and proof-of-concept source. It does not report active exploitation, and KEV status is false. Exploitation requires an authenticated student-level account and network access to the plugin endpoint.
Researcher notes
Evidence supports IDOR through blockId validation failure, with authenticated low-privilege access as the main prerequisite. The sources do not provide complete affected-product metadata or a named patched version, so remediation should be tied to maintainer guidance and local authorization review.
Mitigation direction
Check the plugin maintainer or vendor guidance for a fixed release or official mitigation.
Disable or restrict the OpenAI Chat Block where untrusted student access is unnecessary.
Review Source of Truth entries and remove sensitive administrator-only material where possible.
Monitor OpenAI API usage for unexpected student-originated completion activity.
Limit plugin access to trusted roles until ownership checks are confirmed.
Validation and detection
Inventory Moodle sites for the OpenAI Chat Block plugin and version 3.0.1 (2025021700).
Confirm server-side authorization validates block ownership before using blockId.
Review logs for student accounts invoking completion.php unusually or against unexpected block contexts.
Check whether administrator-only Source of Truth content is accessible through student chat interactions.
Verify any applied update or mitigation blocks cross-user block configuration access.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-639: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-639 · source CWE mapping
Authorization Bypass Through User-Controlled Key
Authorization Bypass Through User-Controlled Key represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.