File Force Downloadの脆弱性、認証なしで非公開ファイルを取得される恐れ
Summary
File Force Download for Drupal 7の7.1.0から7.1.2に脆弱性があり、未認証の訪問者がファイルのURLにdownload=1を付けるだけで、本来のアクセス制御を回避してファイルを取得できます。対象はtemporary://などのスキームのファイルで、publicとprivateのファイルは影響を受けません。修正版の7.1.3への更新を推奨します。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
File Force Download for Drupal 7の7.1.0から7.1.2に脆弱性があり、未認証の訪問者がファイルのURLにdownload=1を付けるだけで、本来のアクセス制御を回避してファイルを取得できます。対象はtemporary://などのスキームのファイルで、publicとprivateのファイルは影響を受けません。修正版の7.1.3への更新を推奨します。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| DrupalFile Force Download |
≥ 7.1.0, < 7.1.3→ 7.1.3 |
7.1.3 |
Original description The description as published by the source.
The File Force Download module for Drupal 7 implements hook_file_download() to add a Content-Disposition header when a file URL carries the download query parameter. In Drupal 7, returning a non-empty header array from that hook is itself a grant of access to the file.
In versions 7.1.0 through 7.1.2, the module only delegated to other modules' hook_file_download() implementations when the file was in the private scheme. For every other scheme it returned its headers without any check. An unauthenticated visitor who appended download=1 to the URL of a file in the temporary:// scheme, or in a stream wrapper supplied by another module, could retrieve the file, overriding the access checks that would otherwise have applied. Files in the public and private schemes are not affected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory herodevs.com
- advisory d7es.tag1.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com
- web git.drupalcode.org
- web drupal.org