File Download
The module does not properly clean up file names before displaying them. An ordinary account on the site could upload a file with a malicious name that runs scripts in the browser of anyone viewing it. This could allow them to view hidden data or change information on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youAny site using this module.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate File Download to 2.0.2.
For developers: what the fix changed
The fix removes the use of `Markup::create()` for the link title in `template_preprocess_download_file_link()` in `file_download.module`, ensuring that filenames are properly escaped rather than being treated as safe HTML.
Also in this release The release also includes Drupal 11 and 12 compatibility fixes, dependency injection improvements, automated tests, and route configuration updates.
file_download.info.yml+1 −1file_download.module+11 −63 fixfile_download.routing.yml+3 −2file_download.services.yml+5 −0modules/file_download_counter/README.md+22 −2modules/file_download_counter/config/install/file_download_counter.settings.yml+1 −0modules/file_download_counter/config/schema/file_download_counter.schema.yml+3 −0modules/file_download_counter/file_download_counter.info.yml+1 −1modules/file_download_counter/file_download_counter.module+25 −55modules/file_download_counter/file_download_counter.services.yml+13 −0modules/file_download_counter/file_download_counter.tokens.inc+6 −47modules/file_download_counter/file_download_counter.views.inc+0 −79