Ágora Transparency Theme
The theme does not sufficiently check file access when it renders a table preview of CSV files attached to content. Anyone with no login could view the contents of a file on the page even if their download of the file is refused. They could not alter any files.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youThe site must store the CSV files outside the public file system and must restrict their download beyond access to the content itself with an additional module or custom code.
- 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 Ágora Transparency Theme to 1.2.3.
For developers: what the fix changed
The fix adds an access check using hook_file_download in _agora_theme_csv_element() to ensure the user has permission to download the CSV file before rendering its preview, and prevents caching of the preview for private files using _agora_theme_csv_no_reuse().
Also in this release The release also includes several bug fixes and improvements, such as fixing focus rings, adjusting logo dimensions, adding a theme setting for the masthead opening line, and updating documentation.
README.md+54 −21agora_theme.info.yml+1 −1agora_theme.theme+231 −3 fixcomposer.json+1 −1config/install/agora_theme.settings.yml+11 −0config/schema/agora_theme.schema.yml+11 −0css/components.css+0 −0css/typography.css+30 −0js/table-scroll.js+9 −0templates/block--system-branding-block.html.twig+16 −6theme-settings.php+29 −6