Skip to main content
Vulnerability Database/CVE-2026-108591

CVE-2026-108591: InnoShop File Disclosure Vulnerability

CVE-2026-108591 is a local file disclosure flaw in InnoShop 0.9.2 allowing authenticated admins to read server files via AI Core MCP tool abuse. This post covers technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108591 Overview

CVE-2026-108591 is a local file disclosure vulnerability in InnoShop 0.9.2. The flaw resides in the AI Core Model Context Protocol (MCP) FileUploadTool component. Authenticated administrators holding the files_create permission can abuse the tool's source argument to read arbitrary server files. The vulnerability is tracked under CWE-73: External Control of File Name or Path.

Attackers supply file:// or php:// stream wrappers that get passed to PHP's file_get_contents(). The resulting content is stored on the publicly accessible media disk, exposing sensitive files such as .env, which contains the APP_KEY and database credentials.

Critical Impact

Authenticated attackers can disclose the InnoShop .env file, leaking the application encryption key and database credentials, enabling further compromise of the shop and backend database.

Affected Products

  • InnoShop 0.9.2
  • InnoShop AI Core package (innopacks/aicore) FileUploadTool
  • InnoShop REST API UploadService component

Discovery Timeline

  • 2026-10-10 - CVE-2026-108591 published to the National Vulnerability Database (NVD)
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108591

Vulnerability Analysis

The vulnerability lives in the FileUploadTool.php component of InnoShop's AI Core MCP integration. The tool accepts a user-controlled source argument intended to reference uploadable content. The handler passes this argument directly into PHP's file_get_contents() without validating the stream wrapper or restricting it to safe locations.

Because file_get_contents() honors PHP stream wrappers, an attacker can supply file:///etc/passwd or php://filter/convert.base64-encode/resource=/var/www/html/.env. The returned bytes are then stored on the application's public media disk via the UploadService. The attacker retrieves the file over HTTP as a normal media asset. Disclosure of the Laravel .env file reveals APP_KEY, database credentials, and other secrets usable for session forgery and lateral movement.

Root Cause

The root cause is External Control of File Name or Path [CWE-73]. The source parameter is treated as a trusted file identifier instead of untrusted input. There is no allowlist of schemes, no normalization against a base directory, and no rejection of PHP stream wrappers before the value reaches file_get_contents().

Attack Vector

Exploitation requires an authenticated administrator account with the files_create permission. The attacker invokes the AI Core MCP file_upload tool and sets source to a file:// or php:// URL pointing at a server-side path. The MCP handler fetches the content and writes it to the public media disk, from which the attacker downloads the leaked file.

Technical details, including the vulnerable code paths at FileUploadTool.php lines 55-89 and the UploadService.php sink, are documented in the VulnCheck advisory and the HackMD local file read write-up.

Detection Methods for CVE-2026-108591

Indicators of Compromise

  • Unexpected files appearing on the public media disk containing content that resembles .env files, PHP source, or system files such as /etc/passwd.
  • MCP file_upload invocations where the source argument begins with file://, php://, phar://, data://, or any non-HTTP(S) scheme.
  • Outbound HTTP GET requests from untrusted IPs to media asset URLs containing base64-encoded content shortly after an MCP upload call.
  • Access-log entries showing administrator sessions calling the AI Core MCP endpoints followed by downloads of newly created media objects.

Detection Strategies

  • Inspect InnoShop application logs for AI Core MCP tool calls and alert when the source parameter uses stream wrappers other than http:// or https://.
  • Scan the public media directory for files whose contents include markers such as APP_KEY=, DB_PASSWORD=, <?php, or root:x:0:0.
  • Correlate administrator authentication events with subsequent MCP file_upload activity to identify abuse of the files_create permission.

Monitoring Recommendations

  • Enable verbose logging for the innopacks/aicore and innopacks/restapi packages to capture tool invocations and their arguments.
  • Monitor file-system write events to the public media disk and compare uploaded MIME types against expected image or document types.
  • Alert on administrator sessions that create an unusual volume of media assets within a short time window.

How to Mitigate CVE-2026-108591

Immediate Actions Required

  • Restrict the files_create permission to a minimal set of trusted administrator accounts and revoke it from service or shared accounts.
  • Disable the AI Core MCP file_upload tool until a patched version is deployed if the feature is not required for business operations.
  • Rotate the Laravel APP_KEY, database credentials, and any other secrets stored in the .env file, assuming prior exposure.
  • Audit the public media disk for leaked configuration or source files and remove any disclosed content.

Patch Information

At the time of publication, no fixed release is referenced in the NVD entry for InnoShop. Monitor the InnoShop GitHub repository and the VulnCheck advisory for an official fix, and upgrade beyond 0.9.2 as soon as a patched version is published.

Workarounds

  • Patch the FileUploadTool locally to reject any source value that is not an HTTP(S) URL, blocking file://, php://, phar://, and data:// wrappers.
  • Configure PHP with allow_url_fopen=Off for the InnoShop process, or restrict stream wrappers using the disable_functions and open_basedir directives.
  • Move the .env file and other sensitive configuration outside the web root and tighten file-system permissions so the web server user cannot read them.
  • Place a reverse-proxy or Web Application Firewall (WAF) rule in front of the admin and MCP endpoints to block requests whose JSON body contains stream-wrapper schemes.
bash
# Example PHP hardening in php.ini for the InnoShop process
allow_url_fopen = Off
allow_url_include = Off
open_basedir = "/var/www/innoshop/public:/var/www/innoshop/storage:/tmp"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.