CVE-2026-122057 in S3 File System CORS Upload Moduleinfo

Summary

by MITRE • 11/26/2026

Missing Authorization vulnerability in Drupal S3 File System CORS Upload allows Forceful Browsing. This issue affects S3 File System CORS Upload versions: from 0.0.0 to 1.3.0.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The S3 File System module for Drupal provides functionality that enables the storage of uploaded files in Amazon Simple Storage Service buckets rather than on local web server disk space. This integration is particularly valuable for organizations seeking scalable, durable, and cost-effective cloud storage solutions while maintaining a unified content management interface. However, within versions ranging from 0.0.0 to 1.3.0, the module contains a critical security flaw related to Cross-Origin Resource Sharing (CORS) configuration during file uploads. The vulnerability stems from an insufficient authorization check when handling requests that utilize CORS mechanisms for direct browser-to-S3 uploads. In this architecture, browsers are often configured to send files directly to AWS S3 using pre-signed URLs or specific bucket policies to reduce server load and improve upload performance. When the module processes these CORS-based upload requests, it fails to adequately verify whether the requesting user possesses the necessary permissions to write to the target location within the S3 bucket structure.

This lack of proper access control enforcement allows an attacker who has authenticated access to the Drupal site but lacks specific administrative or elevated file management privileges to perform forceful browsing and unauthorized writes. By manipulating the CORS upload parameters, such as the destination key path in the request payload, a low-privileged user can potentially write files into directories reserved for administrators or other sensitive areas of the storage bucket. This capability effectively bypasses the intended permission boundaries established by Drupal's native role-based access control system. The attacker does not need to exploit a separate server-side vulnerability; instead, they leverage the module’s own logic and the underlying S3 API behavior to place files where they should not have write access.

The operational impact of this vulnerability is significant because it can lead to unauthorized data modification or storage of malicious content within the organization's cloud infrastructure. If an attacker successfully uploads a file to a sensitive directory, they might be able to serve that file through Drupal if the path is accessible via web routes, potentially leading to cross-site scripting attacks against other users who view the uploaded content. Furthermore, in scenarios where S3 buckets are configured with public read access for certain assets, this could result in data leakage or exposure of internal files. The ability to write arbitrary files also opens avenues for further exploitation, such as uploading web shells if the bucket configuration allows execution or if subsequent steps involve processing those files by backend services that trust their origin from specific paths within the bucket.

From a classification perspective, this issue aligns with CWE-269, which describes Improper Privilege Assignment, and specifically relates to CWE-862, Missing Authorization. In terms of offensive security frameworks like MITRE ATT&CK, this vulnerability facilitates techniques associated with Initial Access or Persistence if malicious files are successfully placed in accessible locations. The root cause lies in the module's failure to enforce server-side authorization checks on CORS upload requests before allowing them to proceed to the S3 API layer. While CORS is a standard web technology designed to allow cross-origin HTTP requests, its implementation within this Drupal module did not adequately restrict which authenticated users could initiate uploads and where those files would be stored relative to their assigned permissions.

To mitigate this vulnerability, administrators must upgrade the S3 File System module to version 1.4.0 or later, where these authorization checks have been corrected. Until an update is applied, site maintainers should review their Drupal user roles and ensure that no users with limited privileges are granted access to file upload functionalities unless absolutely necessary. Additionally, reviewing AWS IAM policies associated with the S3 bucket can provide defense in depth; ensuring that the IAM role or user used by the module has strictly scoped permissions can limit the blast radius if an attacker attempts to exploit this flaw. It is also advisable to implement strict CORS policies on the S3 bucket itself, restricting origins and methods to only those explicitly required for legitimate application functionality, thereby reducing the attack surface available to potential abusers of the upload mechanism.

Responsible

Drupal

Reservation

11/04/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00374

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!