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

CVE-2026-100884: Krayin CRM Resource Identifier Vulnerability

CVE-2026-100884 affects Krayin laravel-crm up to version 2.2.5, allowing remote attackers to exploit improper resource identifier controls in the attachment download endpoint. This article covers technical details, impact analysis, and upgrade guidance.

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-100884 Overview

CVE-2026-100884 is an Insecure Direct Object Reference (IDOR) vulnerability in Krayin laravel-crm versions up to 2.2.5. The flaw resides in the Storage::download function invoked through the email attachment-download endpoint. An authenticated attacker can manipulate the attachment ID parameter to retrieve email attachments belonging to other users, bypassing function-level authorization controls [CWE-99: Improper Control of Resource Identifiers]. The exploit has been publicly disclosed, and the vendor has released version 2.2.6 containing the fix. The vulnerability is remotely exploitable over the network and requires only low-privilege authenticated access.

Critical Impact

Any authenticated user can download arbitrary email attachments by iterating attachment identifiers, enabling cross-tenant data exposure within the CRM.

Affected Products

  • Krayin laravel-crm versions up to and including 2.2.5
  • Component: packages/Webkul/Admin/src/Config/acl.php (ACL route map)
  • Endpoint: admin.mail.attachment_download

Discovery Timeline

  • 2026-09-27 - CVE-2026-100884 published to NVD
  • 2026-09-28 - Last updated in NVD database
  • Patch commit - 13d6988cda8d69ece45ee1890effc90a7f21cdc1 merged via Pull Request #2627 addressing Issue #2624

Technical Details for CVE-2026-100884

Vulnerability Analysis

The vulnerability stems from missing function-level authorization in the email attachment download controller. The download($id) method in EmailController.php accepted any attachment identifier and returned the stored file through Storage::download without verifying that the requesting user had permission to view the underlying mailbox. Because the ACL configuration in acl.php only registered admin.mail.view for the mail.view route, the admin.mail.attachment_download route was effectively unprotected by the ACL middleware. This allowed any authenticated CRM user to enumerate attachment IDs and download files associated with mails they did not own.

Root Cause

Two coupled defects produce the issue. First, the ACL route map omitted admin.mail.attachment_download from the mail.view permission group, breaking route-level authorization. Second, the controller method did not perform a defense-in-depth permission check before resolving the attachment through attachmentRepository->findOrFail($id). The result is classic IDOR behavior: a direct, server-side object lookup gated only by authentication, not authorization.

Attack Vector

An attacker with any authenticated CRM account issues HTTP GET requests to the attachment download endpoint, incrementing or guessing the numeric id parameter. Each successful response returns the raw attachment content from another user's email thread. No elevated role, user interaction, or additional exploit chain is required.

php
// Patch: packages/Webkul/Admin/src/Http/Controllers/Mail/EmailController.php
public function download($id)
{
    /**
     * Downloading an attachment requires the mail view permission — the same permission that
     * gates the mailbox it belongs to. This closes the missing function-level authorization that
     * let any authenticated user retrieve an attachment by its id, independent of the ACL route
     * map (defense in depth).
     */
    abort_unless(bouncer()->hasPermission('mail.view'), 401, trans('admin::app.errors.unauthorized'));

    $attachment = $this->attachmentRepository->findOrFail($id);

    try {

Source: GitHub Commit 13d6988c

php
// Patch: packages/Webkul/Admin/src/Config/acl.php
], [
    'key'   => 'mail.view',
    'name'  => 'admin::app.acl.view',
-   'route' => 'admin.mail.view',
+   'route' => ['admin.mail.view', 'admin.mail.attachment_download'],
    'sort'  => 7,
], [

Source: GitHub Commit 13d6988c

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-100884

Indicators of Compromise

  • Sequential or non-sequential enumeration of numeric id values in requests to /admin/mail/attachment/download/{id}.
  • A single authenticated session downloading attachments linked to multiple distinct mailbox owners within a short window.
  • HTTP 200 responses to attachment download requests from accounts that never accessed the parent admin.mail.view route for the same mailbox.

Detection Strategies

  • Correlate web server access logs for the admin.mail.attachment_download route against the CRM user-to-mailbox ownership mapping to flag cross-ownership downloads.
  • Instrument the download($id) controller with audit logging that records user ID, attachment ID, and owning mailbox ID for retrospective analysis.
  • Deploy an application-layer rule to alert when a single session issues more than N attachment download requests per minute.

Monitoring Recommendations

  • Monitor Laravel application logs for repeated findOrFail lookups originating from the same session across unrelated attachment IDs.
  • Enable database query logging on the attachments table and alert on broad SELECT patterns tied to the download endpoint.
  • Review authentication logs for low-privilege accounts that generate anomalous volumes of attachment traffic.

How to Mitigate CVE-2026-100884

Immediate Actions Required

  • Upgrade Krayin laravel-crm to version 2.2.6 or later.
  • Audit historical access logs for the admin.mail.attachment_download route to identify prior unauthorized downloads.
  • Rotate or review sensitivity of any email attachments that may have been exposed to non-privileged accounts.

Patch Information

The fix is delivered in commit 13d6988cda8d69ece45ee1890effc90a7f21cdc1, merged through Pull Request #2627. The patch adds admin.mail.attachment_download to the mail.view ACL permission group and introduces an explicit bouncer()->hasPermission('mail.view') check inside the controller as defense in depth. Upgrade to release v2.2.6 to receive both changes.

Workarounds

  • If immediate upgrade is not feasible, apply the two-line change from the upstream patch to local copies of acl.php and EmailController.php.
  • Restrict the admin.mail.attachment_download route behind reverse-proxy ACLs that limit access to users holding the mail.view role.
  • Temporarily disable the attachment download endpoint for non-administrative roles until the patch is applied.
bash
# Upgrade via Composer
composer require krayin/laravel-crm:^2.2.6
php artisan migrate
php artisan config:clear
php artisan route:clear

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.