Skip to main content

OpenAI Chat Block CVE-2025-60511

MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2025-10-21 cve@mitre.org
4.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Moodle as enrolled student
  2. Delivery
    Identify or enumerate admin blockId values via sequential integer guessing
  3. Exploit
    Craft POST request to /blocks/openai_chat/api/completion.php with target blockId
  4. Execution
    Server executes query under admin block configuration
  5. Persist
    Receive admin Source of Truth content and privileged AI responses
  6. Impact
    Repeat to exhaust API quota

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires a valid Moodle user account at any role level (student or higher; CVSS PR:L). The target Moodle instance must have the OpenAI Chat Block plugin version 3.0.1 installed with at least one admin-configured block that has a non-default system prompt or Source of Truth entries. The attacker must be able to enumerate or guess a valid blockId belonging to a more privileged user - blockIds are typically sequential integers in Moodle's database, making enumeration straightforward. No special network position is required (AV:N). Exploitation is limited by: the requirement for a valid institutional Moodle account (eliminates unauthenticated external attackers), the need for the plugin to be installed (rare outside Moodle deployments that have adopted AI chat features), and the fact that meaningful data exposure only occurs when admin blocks contain sensitive custom configurations.

Impact

The NVD CVSS of 4.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) reflects the low privilege bar and network accessibility but caps impact at partial confidentiality, which is appropriate for the base case. The EPSS at 0.23% (14th percentile) signals that automated or opportunistic exploitation at scale is unlikely, consistent with the requirement for a valid Moodle account. No CISA KEV listing is present. However, a public proof-of-concept exists (onurcangenc.com.tr writeup and GitHub PoC), which meaningfully lowers the skill bar for targeted exploitation. Real-world risk is elevated for Moodle deployments that use this plugin to deliver sensitive AI-assisted instruction or store confidential administrative knowledge in block configurations; for general Moodle deployments without this plugin the risk is zero. The CVSS I:N rating is defensible for persistent data integrity but may underweight the ability to consume API resources (quota exhaustion under the admin's API key), which constitutes a limited but real availability impact not reflected in the official vector.

Exploit ScenarioDerived

An authenticated student logs into Moodle, then iterates or guesses integer blockId values in POST requests to /blocks/openai_chat/api/completion.php. Upon hitting an administrator-owned block ID, the server returns AI responses generated under the admin's system prompt and Source of Truth configuration, exposing confidential knowledge entries. A public PoC exists, making this straightforward for any enrolled user with basic HTTP tooling such as Burp Suite or curl.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 05, 2026

Insecure Direct Object Reference in the Moodle OpenAI Chat Block plugin 3.0.1 allows any authenticated student to hijack administrator-configured AI block sessions by supplying an arbitrary blockId to the completion API endpoint. An attacker leveraging this flaw can read admin-only 'Source of Truth' prompt configurations, steer AI responses using privileged system instructions, and consume API quota tied to another user's block. A public proof-of-concept writeup and associated GitHub repository exist, though no confirmed active exploitation (CISA KEV) has been recorded; EPSS sits at 0.23% (14th percentile), indicating low but non-zero real-world exploitation interest.

RemediationAI

No vendor-released patch has been identified at time of analysis. Administrators should immediately audit whether the OpenAI Chat Block plugin is in use and assess whether any blocks contain sensitive 'Source of Truth' configurations or privileged system prompts. As a compensating control, web server-level access restrictions on /blocks/openai_chat/api/completion.php can be applied to limit requests to specific authenticated roles or IP ranges - note this may break legitimate student use of the chat feature. Alternatively, disabling the plugin entirely eliminates the attack surface at the cost of removing AI chat functionality. The researcher's writeup at https://onurcangenc.com.tr/posts/idor-in-moodle-openai-chat-block-block_openai_chat-proof-of-concept-poc--cve-2025-60511/ describes the PoC; administrators can use that detail to implement server-side blockId ownership validation in the interim if they have PHP development capability.

Affected ProductsAI

The Moodle OpenAI Chat Block plugin version 3.0.1 (build 2025021700) is confirmed affected per the CVE description. This is a third-party plugin installed into Moodle LMS instances; it is not part of Moodle core. No CPE strings were provided in the input data. Moodle core versions and operating systems are not specified as preconditions beyond hosting a compatible Moodle instance with this plugin installed and at least one admin-configured block present. The researcher's PoC repository is available at https://github.com/onurcangnc/moodle_block_openai_chat.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in CWE-639 (Authorization Through User-Controlled Key): the application uses a caller-supplied blockId parameter to look up a block object and execute a completion request under that block's configuration, without verifying that the requesting user owns or has permission to use that block. The affected file is /blocks/openai_chat/api/completion.php, a PHP endpoint that serves as the back-end bridge between Moodle's block framework and the OpenAI Chat Completions API. Because Moodle's block system allows administrators to define per-block system prompts and 'Source of Truth' knowledge entries (admin-only content), an IDOR here is particularly impactful: the attacker does not merely read a record but executes live AI queries under a privileged configuration. No CPE strings were provided in the input data; the affected product is third-party and not part of Moodle core.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.4 MEDIUM

Network-accessible IDOR requiring only low-privilege authentication; A:L added over NVD rating because API quota misuse under another user's key constitutes a concrete availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche third-party Moodle plugin, limited adoption beyond AI-integrated LMS deployments
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy