What happened
The create_image endpoint of the AI Engine MCP Server & AI Chatbot plugin allows a limited arbitrary file upload via the url parameter, an upload primitive that in a web-accessible context can enable code execution.
Why it matters
This plugin exposes an MCP server and AI chatbot to the web; a file-upload primitive gives an attacker a foothold toward server-side code execution on a site integrated with AI tooling.
Attack vector
The /mwai/v1/helpers/create_image REST endpoint's url parameter allows a limited arbitrary file upload, letting an attacker place a file of their choosing on the server (e.g., a script under a web-accessible path).
Affected systems
AI Engine – MCP Server & AI Chatbot WordPress plugin ≤ 3.9.4
Mitigation
Update the AI Engine plugin to a release patched after 3.9.4; restrict access to the create_image endpoint and validate/sanitize uploaded files.